function confirmation() {
var answer = confirm("Leave tizag.com?")
if (answer){
alert("Bye bye!")
window.location = "http://www.google.com/";
}
else{
alert("Thanks for sticking around!")
}
}
Source:
http://www.tizag.com/javascriptT/javascriptconfirm.php
var answer = confirm("Leave tizag.com?")
if (answer){
alert("Bye bye!")
window.location = "http://www.google.com/";
}
else{
alert("Thanks for sticking around!")
}
}
Source:
http://www.tizag.com/javascriptT/javascriptconfirm.php
No comments:
Post a Comment