frameset 框架页整个跳转的问题

SHANDIANDIAN 2011-09-13 08:32:23
<frameset id="father" name="father" rows="110,*" cols="*" frameborder="no" border="0" framespacing="0">
<frame src="top.php" name="topFrame" scrolling="no" noresize="noresize" id="topFrame" title="topFrame" />
<frameset cols="200,*" frameborder="no" border="0" framespacing="0">
<frame src="left.php" name="leftFrame" scrolling="auto" noresize="noresize" id="leftFrame" title="leftFrame" />
<frame src="right.php" name="mainFrame" id="mainFrame" title="mainFrame" />
</frameset>
</frameset>
<noframes><body>
</body></noframes>

后台登录 要跳转整个页面,不要在框架页面内跳转,应该怎么写??? 网上找了些代码试了 都没用
...全文
208 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
hookee 2011-09-14
  • 打赏
  • 举报
回复
js: top.location.href = "xxx.php";
html: <form target="_top">
hch126163 2011-09-14
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 hookee 的回复:]

js: top.location.href = "xxx.php";
html: <form target="_top">
[/Quote]

+++

top 最顶层 window 对象
SHANDIANDIAN 2011-09-14
  • 打赏
  • 举报
回复
谢谢各位了,一开始是用 PHP 的header 函数,老是跳转不了,现在用JS 了 就好了
BLUE_LG 2011-09-14
  • 打赏
  • 举报
回复
给top.location.href赋值就好了。。。
豆虫 2011-09-13
  • 打赏
  • 举报
回复
top.location.href = 'url'
  • 打赏
  • 举报
回复
登录页不要有框架就可以了!~~~

87,990

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧