Note :- Here Check = Cheque ( In USA cheque is spelled as check )
In a website, we've given the functionality to print the check to super-admin.
Super-admin can print the check by clicking on print button. After clicking on the print button, it generates a popup to complete the action. Also, there are two events named as print and cancel(This is browser specific).
When super-admin clicks on the print event, then check comes out with all the details and all the orders belonging to the same check will get paid automatically in DB. When super-admin clicks on cancel, there is no action to be performed.
What we need to do :- We need to capture the event of print and cancel with 100% accuracy in all browsers, because here it's the matter of money (check).
So, I Need help on the way to get cancel and print events.