js 有框架页面跳转
2013-04-09 13:57:38 来源:开发学院核心提示: 1.跳出框架,在父页面,js 有框架页面跳转,jsp:<script language="javascript">window.parent.frames.location.href="../welcome.en"</script>java:PrintW
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';
更多精彩
赞助商链接