In javascript onbeforeunload event i called a method. as <body onbeforeunload=fun> This event is when i clicked on 'X' on top right corner.(i.e. before closing the browser window) in 'fun' function i want to stop the browser window closing. how can i achieve this.
<SCRIPT LANGUAGE=JavaScript FOR=window EVENT=onbeforeunload> <!-- var strMsg = 'Leaving this page with will cause you to loose any information you have entered' window.event.returnValue = strMsg; // --> </SCRIPT>
mooooooo ..... tiny ad ....
Gift giving made easy with the permaculture playing cards