138
rated 0 times
[
144]
[
6]
/ answers: 1 / hits: 19952
/ 11 Years ago, tue, november 19, 2013, 12:00:00
I just want to show a message before leaving the page, but my code doesn't works:
window.onload=function(){
alert(Page with a digital clock);
setInterval(clock,1000);
}
window.onbeforeunload=function(){
alert(Are you sure to leave this page?);
}
The onload alert works fine, but the second is not working..
More From » onbeforeunload