Is there a way to abort the print event after a user has pressed the web browsers print button?
This works for print buttons within the HTML (jQuery):
print_btn.click(function() {
if (confirm("Are you sure you want to print? Consider the environment")) {
window.print();
}
});
Is there a way to do the same with the web browsers print button? For IE there seemes to be a onbeforeprint event, but from there I can't find a way to abort the printing.
Thanks!