Window print() method
Window Object
Definition and Usage
The print() method is used to print the contents of the current window.
Syntax
window.print()
Browser support





All major browsers support the print() method
Example
Example
Print the current page:
function printpage(){
window.print();
}
Try it »
Window Object