facebook twitter youtube
in Html - 20 Jun, 2009, This Tutorial Has Been Viewed 17,012 Times.
by admin - no comments
Close Event In Javascript For Firefox, IE and Chrome
VN:F [1.9.22_1171]
Rating: 4.7/10 (19 votes cast)

Hi guys here is the event that gets triggered when ever a browser [Internet Explorer, Firefox, Chrome] is closed.

Its very simple just check out the script

<html>
<body>
<script type="text/javascript">
window.onbeforeunload = check;
function check()
{
return "Are you sure you want to exit this page?";
//or put whatever function you need to call when a user closes the web //browser.
}
</script>
</body>
</html>

Hope you guys got it!!!!appreciate your comments.

VN:F [1.9.22_1171]
Rating: 4.7/10 (19 votes cast)
Close Event In Javascript For Firefox, IE and Chrome, 4.7 out of 10 based on 19 ratings

Incoming search terms:




coded by nessus

Leave a Reply

Close
Please support the site
By clicking any of these buttons you help our site to get better