在我的应用程序中,我只想要一定数量的脚本(Text1.php,Text2.php和Text3.php)来包含一段代码,如果用户点击后面的浏览器按钮,它将显示一个类似于一个如下:
confirm("You have clicked on the browser's back button. If you confirm to go back via the browser back button, you will be logged out and lose your current assessment details." + "\n" + "\n" + "Are you sure you want to go back and lose current assessment details?" + "\n" );
Run Code Online (Sandbox Code Playgroud)
要求如下:
return false;谢谢