Click here to Skip to main content
15,881,938 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
can anybody please help me ,how to stop

confirm box is coming with stayonthis page or leave this page popup
Posted
Updated 26-Feb-18 18:51pm

It is a browser feature and not one you can control via code.
 
Share this answer
 
You can use this if u are using onbeforeunload for alert


function myFunction() {
window.onbeforeunload = null;

}

 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900