0
我有一个页面包含一个表单,我想提示用户确认离开页面,如果他们已经开始输入表单数据,除非,当然,他们离开页面提交表格。如果表单已提交导致页面更改,如何绕过以下代码?确认离开页面,除非通过表单提交离开
$(document).ready(function(){
window.onbeforeunload = function() {
return "If you leave this page before submitting your information to us you will need to reenter it again.";
}
})