D
drewmania001
im currently using the following to prompt the user before navigating
away from the page
// add an unload event
window.onbeforeunload = bunload;
// function to prompt user
function bunload(o){
return false;
}
however i do not want this to occur EVERY time...only when the URL is a
differnt domain.
for example if my website is www.drew.com and the user trys to navigate
away from this i want the prompt to appear, if the link is to
www.drew.com i dont want it to appear
IS THERE ANY WAY I CAN FIND OUT WHAT URL THE PAGE IS TRYING TO GO TO?
if i had that info i could use js/php to compare the values and i'd be
all set
i'm wondering what sort of information i can get out of the object? any
ideas???
away from the page
// add an unload event
window.onbeforeunload = bunload;
// function to prompt user
function bunload(o){
return false;
}
however i do not want this to occur EVERY time...only when the URL is a
differnt domain.
for example if my website is www.drew.com and the user trys to navigate
away from this i want the prompt to appear, if the link is to
www.drew.com i dont want it to appear
IS THERE ANY WAY I CAN FIND OUT WHAT URL THE PAGE IS TRYING TO GO TO?
if i had that info i could use js/php to compare the values and i'd be
all set
i'm wondering what sort of information i can get out of the object? any
ideas???