|
|
<head runat="server">
<title></title>
<script type="text/javascript">
window.onbeforeunload = function() {
if (window.event)
window.event.returnValue = 'Thank you for visiting us!';
else
return 'Thank you for visiting us!';
}
</script>
</head>
'Like' us on our FaceBook page if you find this blog useful. Thanks!
Did you like this post?
|
|
|
||
|
|
|
|
Save on Delicious |
|
|
subscribe via rss |
|
subscribe via e-mail |
|
|
print this post |
|
follow me on twitter |




comments
3 Responses to "Ask user before closing the browser - IE and Mozilla"Hi Dear,
Have You test your written code to ask before close the browser.
your code is executing on every click on button or page load.
Please i would suggest you ,Please test your written code before publish on internet.
Gautam: The code 'has' been tested :) This code has been tested on IE7, Firefox 3 and has been added to the post.
Have You test your written code to ask before close the browser.
your code is executing on every click on button or page load.
Post a Comment