Window.print()
Opens the print dialog to print the current document.
If the document is still loading when this function is called, then the document will finish loading before opening the print dialog.
This method will block while the print dialog is open.
Syntax
window.print()
Specifications
Specification |
---|
HTML Standard # printing |
Browser compatibility
BCD tables only load in the browser