隐藏确认框即将停留在此页面或离开此页面 [英] hide confirm box is coming with stayonthis page or leave this page
本文介绍了隐藏确认框即将停留在此页面或离开此页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人都可以帮助我,如何停止
确认框正在关闭此页面或者离开此页面弹出
can anybody please help me ,how to stop
confirm box is coming with stayonthis page or leave this page popup
推荐答案
这是一个浏览器功能,而不是您可以通过代码控制的功能。
It is a browser feature and not one you can control via code.
如果您使用onbeforeunload进行提醒,可以使用此功能
函数myFunction(){
window.onbeforeunload = null;
}
You can use this if u are using onbeforeunload for alert
function myFunction() {
window.onbeforeunload = null;
}
这篇关于隐藏确认框即将停留在此页面或离开此页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文