Using JavaScript I can write
window.print();
This will show the print dialog for the user to print the screen. My question is how can I tell whether the page was actually printed or whether the user clicked cancel.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t. The printer diaglog box does not pass anything back to the browser once the JS calls it so there is nothing to listen or check for after the print dialog box is displayed.