日期:2014-05-17 浏览次数:20521 次
<html>
<head>
<script type="text/javascript">
function a() {
window.open('', '_parent', '');
window.close();
}
</script>
</head>
<body>
<input type="button" value="弹出新窗口" onclick="a()"/>
<a href="time.html" target="_parent">超级链接在父窗口中打开新页面</a>
</body>
</html>
------解决方案--------------------
用模态框
参考
------解决方案--------------------
好像是IE8提高了安全。必须有提示。。,,,,也许我记错了。。
------解决方案--------------------
通过父窗口打开的就行吧,如果是单独的窗口好像是还是会提示