使用JS跳转时如何控制Target属性

来源:互联网 发布:js随机动态显示 编辑:程序博客网 时间:2024/05/16 12:03

1.跳出框架,在父页面。

<script> window.parent.frames.location.href="index.html" </script> 

2.从一个框架跳转到 name=”main” 的框架里

<script> window.parent.main.location.href= "index.html"; </script> 
0 0
原创粉丝点击