方法:1、、从一个框架跳到另一个框架中,语法“window.框架名.location.href="https://zhishitu.com/ke">
本教程操作环境:windows7系统、javascript1.8.5版、Dell G3电脑。
1.从一个框架跳转到 name="main" 的框架里。
<script language="javascript"> var key = document.getElementById(" ## ").value; window.parent.main .location.href="https://zhishitu.com/ke" ? key=" + key; </script>
2.ContentList 当前页的iframe名字
window.ContentList.location.href="https://zhishitu.com/ke">扩展资料:
跳出框架,在父页面。
jsp:
<script language="javascript"> window.parent.frames.location.href="https://zhishitu.com/ke" </script>java:
PrintWriter out = response.getWriter(); out.write("<script type='text/javascript'>window.parent.frames.location.href="https://zhishitu.com/ke" return;【推荐学习:javascript高级教程】
以上就是javascript如何跳转页面target的知识。速戳>>知识兔学习精品课!