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