javascript - onunload not working as expected in IE10 -
i facing strange problem in environment, let me explain it.
i have html page shown below -
<!doctype html> <html> <head> <script type="text/javascript> window.onunload=function(){alert("unloading page");} </script> </head> <body> <a href="http://localhost:8080/abc">localhost</a> </body> </html>
when opening page in ie10 , clicking on localhost link, can't see alert "unloading page". however, in ie7, it's working fine.
however if use "http://google.co.in/" instead, it's working in both ie10 , ie7.
can please me resolve issue? in advance.
Comments
Post a Comment