关闭ie弹出是否关闭对话框
来源:百度知道 编辑:UC知道 时间:2024/05/15 23:44:20
如题,代码怎么写,
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>关闭窗口提示</title>
<script for=window event=onbeforeunload>
if(event.clientX>document.body.clientWidth)alert("确定关闭?");
</script>
</head>
<body>
</body>
</html>
【<a href='#' onClick="window.close();return false;"><font color="#999999">关闭此页</font></a>】