admin管理员组文章数量:1318335
Want to make a confirm box appear before someone leave my site. They have information that will go lost if they leave and you don´t want that right. Pleas be specific with were I should put the code and so since I´m not the best of coders...
Want to make a confirm box appear before someone leave my site. They have information that will go lost if they leave and you don´t want that right. Pleas be specific with were I should put the code and so since I´m not the best of coders...
Share Improve this question asked May 12, 2012 at 18:51 XwequeXweque 6431 gold badge9 silver badges29 bronze badges 1- possible duplicate of Warn user before leaving page with unsaved changes -- please use the search before you ask a new question. – Felix Kling Commented May 12, 2012 at 18:56
1 Answer
Reset to default 7window.onbeforeunload = function(){
return "Are you sure you wanna leave my site?";
}
本文标签: javascriptConfirm message before leaving site cross browser (JS)Stack Overflow
版权声明:本文标题:javascript - Confirm message before leaving site cross browser (JS) - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742037190a2417361.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论