F friENDS Jun 19, 2007 #1 hi can anyone help me how to detect the windows close button using javascript
S SingaporeWebDesign Jun 19, 2007 #2 Hello, Try the onbeforeunload event handler. <script type="text/javascript"> window.onbeforeunload = function () { // put code here } </script> -- Singapore Website Design http://www.bootstrike.com/Webdesign/ Singapore Web Hosting http://www.bootstrike.com/WinXP/faq.html Windows XP FAQ
Hello, Try the onbeforeunload event handler. <script type="text/javascript"> window.onbeforeunload = function () { // put code here } </script> -- Singapore Website Design http://www.bootstrike.com/Webdesign/ Singapore Web Hosting http://www.bootstrike.com/WinXP/faq.html Windows XP FAQ