Window: print()-Methode
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.
Öffnet den Druckdialog, um das aktuelle Dokument zu drucken.
Wenn das Dokument noch geladen wird, wenn diese Funktion aufgerufen wird, wird das Dokument das Laden abschließen, bevor der Druckdialog geöffnet wird.
Diese Methode wird blockieren, solange der Druckdialog geöffnet ist.
Syntax
js
print()
Parameter
Keine.
Rückgabewert
Keiner (undefined
).
Spezifikationen
Specification |
---|
HTML # printing |
Browser-Kompatibilität
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.
Siehe auch
beforeprint
-Ereignisafterprint
-Ereignis