<script type="text/javascript" language="javascript">
window.onbeforeunload = function (e) {
var message = '确定要离开吗?';
e = e || window.event;
if (e) {
e.returnValue = message;
}
return message;
};
</script>
<script type="text/javascript" language="javascript">
window.onbeforeunload = function (e) {
var message = '确定要离开吗?';
e = e || window.event;
if (e) {
e.returnValue = message;
}
return message;
};
</script>
转载于:https://www.cnblogs.com/init-007/p/11420771.html