Latest web development tutorials

Window print () method

Window Object Reference Window object

Definition and Usage

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

grammar

window.print()


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support print () method


Examples

Examples

Print this page:

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

try it"


Window Object Reference Window object