<html>
<head>
<title>a</title>
<script language="JavaScript">
window.onbeforeunload = confirmExit;
function confirmExit()
{
return "You have attempted to leave this page. If you have made any changes to the fields without clicking the Save
button, your changes will be lost. Are you sure you want to exit this page?";
}
</script>
</head>
<body>
hhh
</body>
</html>
onbeforeunload
最新推荐文章于 2024-04-19 09:14:41 发布