Window.print()
Baseline 2023Newly available
Since June 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
現在の文書を印刷するための印刷ダイアログを開きます。
この関数が呼び出されたとき、文書がまだ読み込み中であった場合、文書は印刷ダイアログを開く前に読み込みを終了します。
このメソッドは、印刷ダイアログが開いている間、ブロックされます。
構文
js
print();
引数
なし。
返値
なし (undefined
)。
仕様書
Specification |
---|
HTML # printing |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
print |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- See implementation notes.
The compatibility table on 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.
関連情報
- 印刷
beforeprint
イベントafterprint
イベント