您的位置:首页 > 其它

IE 7 不弹出提示框,自动关闭窗体

2011-01-07 15:13 417 查看
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title></title>
</head>
<body>
<a href="#" mce_href="#" onclick="window.opener=null;window.open('','_self');window.close();">关闭窗体 </a>
</body>
</html>


<javascript type="text/javascript"><!--
//关闭父窗体

function WindowClose()
{
parent.window.opener=null;
parent.window.open('','_self');
parent.window.close();
}
// --></javascript>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: