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 StandardThe 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.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
print
|
Chrome Full support 1 Full support 1 Notes' Starting with Chrome 46, this method is blocked inside an |
Edge
Full support 12 |
Firefox
Full support 1 |
IE
Full support 5 |
Opera Full support 6 Full support 6 Notes' Starting with Opera 33, this method is blocked inside an |
Safari
Full support 1.1 |
WebView Android Full support 1 Full support 1 Notes' Starting with WebView 46, this method is blocked inside an |
Chrome Android Full support 18 Full support 18 Notes' Starting with Chrome 46, this method is blocked inside an |
Firefox Android No support No No support No Notes' See bug 1247609. |
Opera Android Full support 10.1 Full support 10.1 Notes' Starting with Opera 33, this method is blocked inside an |
Safari iOS
Full support 1 |
Samsung Internet Android Full support 1.0 Full support 1.0 Notes' Starting with Samsung Internet 5.0, this method is blocked inside an |
Legend
- Full support
- Full support
- No support
- No support
- See implementation notes.'
- See implementation notes.
See also
Window.print() by Mozilla Contributors is licensed under CC-BY-SA 2.5.