Close Event In Javascript For Firefox, IE and Chrome

This Tutorial Has Been Viewed 3,378 Times.

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.13_1145]
Rating: 3.7/10 (6 votes cast)
VN:F [1.9.13_1145]
Rating: -1 (from 9 votes)

Close Event In Javascript For Firefox, IE and Chrome, 3.7 out of 10 based on 6 ratings

Incoming search terms:





You will also be interested in ,

Leave a Reply

Spam protection by WP Captcha-Free

Proudly designed by Mistonline.in.
Affordable Seo PackagesSeo BlogEdu Backlinks
More in Html, JavaScripts (71 of 91 articles)