469,592 Members | 1,741 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,592 developers. It's quick & easy.

using "return false" in my event handler

dmjpro
2,476 2GB
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
2 1387
dorinbogdan
839 Expert 512MB
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
2,476 2GB
thanks for reply
Feb 8 '07 #3

Post your reply

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

Similar topics

2 posts views Thread by gachris | last post: by
32 posts views Thread by Mike Machuidel | last post: by
1 post views Thread by Holger (David) Wagner | last post: by
59 posts views Thread by Pierre Quentel | last post: by
40 posts views Thread by Mark P | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.