“window.opener=false;
window.close() 关闭框架页! ”
种方法:if(window!=window.top){top.location.href=location.href;}
window.close(); 或者window.top.close(); 关闭
第二种方法:调用函数解决:
<script language="JavaScript" type="text/JavaScript">
function turn()
{
window.open("http://www.sohu.com");
}
</script>
<frameset rows="*,154" cols="*" framespacing="2" frameborder="2" onUnload="turn()">
<frame alt="关闭框架页,如何在框架页面中关闭页面" src=http://www.3pcode.com/article/article_115/t.asp scrolling="auto" noresize>
<frame alt="关闭框架页,如何在框架页面中关闭页面" src=http://www.3pcode.com/article/article_115/b.asp scrolling="auto" noresize>
<noframes>
<body>
</body>
</noframes>
</frameset>
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/
领测软件测试网最新更新
关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备10010545号-5
技术支持和业务联系:[email protected] 电话:010-51297073
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备10010545号-5
技术支持和业务联系:[email protected] 电话:010-51297073










