Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- return false on JS confirm


Sandro87 - 7:12 pm on Aug 21, 2010 (gmt 0)


hi how can I return false so that the page wont go on the top when someone doesn't confirm a JS confirm?

function confirm_tip(url, message){

if(confirm(message)){
window.location= url;
}

}





function confirm_tip(url, message){

if(confirm(message)){
window.location= url;
}
else{
return false;
}

}



this doesn't work


Thread source:: http://www.webmasterworld.com/javascript/4190314.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com