i'm trying to detect when the user press the button "Print" on the browser Print Window.
I already know the existence of "afterprint" event but it is fired also when the user press "Cancel", I need to call a function only when the print happens and not when the request is canceled. I open the Print Window from javascript if this can help.
Thanks for your help!