Opens the Print Dialog to print the current document.
In most browsers, this method will block while the print dialog is open. However in more recent versions of Safari, it may return immediately.
Syntax
window.print()
Specifications
Specification | Status | Comment |
---|---|---|
HTML Living Standard The definition of 'print()' in that specification. |
Living Standard |
Browser compatibility
BCD tables only load in the browser