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()
Specification
Specification | Status | Comment |
---|---|---|
HTML Living Standard The definition of 'print()' in that specification. |
Living Standard |
Browser Compatibility
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
print | Chrome
Full support
1
| Edge Full support 12 | Firefox Full support 1 | IE Full support 5 | Opera
Full support
6
| Safari Full support 1.1 | WebView Android
Full support
1
| Chrome Android
Full support
18
| Firefox Android
No support
No
| Opera Android
Full support
10.1
| Safari iOS Full support 1 | Samsung Internet Android
Full support
1.0
|
Legend
- Full support
- Full support
- No support
- No support
- See implementation notes.
- See implementation notes.