IE中如何屏蔽窗口关闭
<html>
<head>
<title>close</title>
<script language=javascript>
window.onbeforeunload = denyCloseWindow;
function denyCloseWindow() {
event.returnValue = "数据保存中,请不要关闭窗口。";
event.cancelBubble = true;
}
</script>
<body>
<input type=button value="关闭" onclick="window.close()">
</body>
</html>
<head>
<title>close</title>
<script language=javascript>
window.onbeforeunload = denyCloseWindow;
function denyCloseWindow() {
event.returnValue = "数据保存中,请不要关闭窗口。";
event.cancelBubble = true;
}
</script>
<body>
<input type=button value="关闭" onclick="window.close()">
</body>
</html>