1.跳出框架,在父页面。
jsp:
<script language="javascript">
window.parent.frames.location.href="../welcome.en"
</script>
java:
PrintWriter out = response.getWriter();
out.write("<script type='text/javascript'>window.parent.frames.location.href = '../welcome.en';</script>");
return;
2.从一个框架跳转到 name="main" 的框架里。
<script language="javascript">
var key = document.getElementById(" ## ").value;
window.parent.main.location.href= "welcome.en? key=" + key;
</script>
3.ContentList当前页的iframe名字
window.ContentList.location.href = '../welcome.en';
3.ContentList当前页的iframe名字
window.ContentList.location.href = '../welcome.en';
本文介绍了三种不同场景下的网页框架跳转方法:1. 从子框架跳出到父页面;2. 在父页面中指定name属性的框架间进行跳转;3. 对ContentList当前页的iframe进行跳转。
3571

被折叠的 条评论
为什么被折叠?



