Window.print()

Baseline 2023
Newly available

Since June 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

Sumário

Abre a janela de impressão para imprimir o documento atual.

Sintaxe

js
print()

Parameters

None.

Return value

None (undefined).

Especificações

Specification
HTML
# printing

Compatibilidade com navegadores

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
print

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
See implementation notes.

Veja também