GoogleChrome / GoogleChrome/samples

Is there a way to identify if you have clicked print or cancel in the chrome print dialog?

Open
#827 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.9k
Forks
2.4k
Avg merge
24m
Merged PRs (30d)
2

Description

I understand that I can identify before the dialog is presented and after with the methods:

window.onbeforeprint
window.onafterprint

but none of these methods validate whether the print or cancel button was clicked, only afterprint tells me that the dialog was closed.
Imagining that I need to save the information about whether what was sent to the dialog was printed or not, it is necessary to validate whether it was canceled or not, I think that is quite basic, but even so, Chrome does not have it, is there a way to identify if it was canceled or not? And if possible, could you add a callback or whatever that could help capture this information?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.