Easy Tutorial
❮ Prop Img Src Met Form Submit ❯

Window print() Method


Definition and Usage

The print() method is used to print the contents of the current window.

Syntax


Browser Support

All major browsers support the print() method.


Example

Print the current page:

function printpage(){
    window.print();
}

❮ Prop Img Src Met Form Submit ❯