By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,420 Members | 1,248 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,420 IT Pros & Developers. It's quick & easy.

using "return false" in my event handler

dmjpro
100+
P: 2,476
what concept i have that when i wrting my own event handler then if my handler returns false then the default event handler will no more execute.
so i can stop the window default behaviours
sometimes i get the fruitful result but sometimes not

as for example ....

<body onunload = test>

function test()
{
alert(message); //flashes the message but i can't stop the defalut behaviours
return false;
}

i mean to say that the page cann't refreshed or not to closed
is it possible friends

plz help me out .....
thanks in advance
Feb 8 '07 #1
Share this Question
Share on Google+
2 Replies

dorinbogdan
Expert 100+
P: 839
Please take a look at:
http://www.webreference.com/dhtml/diner/beforeunload/bunload4.html

It may be related and helpful (using onbeforeunload event).
Feb 8 '07 #2

dmjpro
100+
P: 2,476
thanks for reply
Feb 8 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.