Thursday, 8 August 2013

onbeforeunload in IE 10

onbeforeunload in IE 10

I have some problem: I open new window by javascript: w = window.open(
'some URL' ); and I want to catch event when this window will close. I use
onbeforeunload : w.onbeforeunload = function(){ //some code } Also i tried
jquery: $(w).bind('beforeunload' , function(){ //some code });
But this event handlers doesn't work in IE 10. Can somebody advise me with
this issue?

No comments:

Post a Comment