The code below is not working for me in Chrome or FireFox.
What I expected the code to do is, create an alert box when I leave the page. onMouseOver and onClick are working fine for me and do create alerts.Code:
<body onUnload="alert('Dont Leave');">
Is there an error in the code?