HTML 框架集查询
我有以下用于框架集显示的代码
<FRAMESET ROWS="18%,*" >
<FRAME SRC="./views/Title_Page.html" NAME=TITLE SCROLLING=NO MARGINHEIGHT=1 noresize="noresize">
<FRAMESET COLS="20%,*">
<FRAME SRC="./views/Navigation_Page.jsp" NAME=SIDEBAR noresize="noresize" scrolling="no">
<FRAME SRC="./views/Welcome.html" NAME=MAIN noresize="noresize">
</FRAMESET>
<NOFRAMES>NOFRAMES stuff
</NOFRAMES>
</FRAMESET>
,我想添加一个注销应用程序的注销链接,当我在 Title_Page.html 中添加链接时,它仅注销该框架,而不注销其他框架,如何处理它?我想从所有框架中完全注销
I have the following code for framset display
<FRAMESET ROWS="18%,*" >
<FRAME SRC="./views/Title_Page.html" NAME=TITLE SCROLLING=NO MARGINHEIGHT=1 noresize="noresize">
<FRAMESET COLS="20%,*">
<FRAME SRC="./views/Navigation_Page.jsp" NAME=SIDEBAR noresize="noresize" scrolling="no">
<FRAME SRC="./views/Welcome.html" NAME=MAIN noresize="noresize">
</FRAMESET>
<NOFRAMES>NOFRAMES stuff
</NOFRAMES>
</FRAMESET>
I want to add a logout link which logges out of the app ,when i add a link in Title_Page.html it logges out only that frame but not the others,how will handle it?i want to log out completly from all the frames
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我必须在序言中说,现在框架在网络上几乎是不受欢迎的。它们已被弃用,它们不是良好的用户体验,很难链接或为页面添加书签等等...
将
target="_top"
添加到您的注销链接。它将定位“顶部”页面(定义所有框架的页面)。另请注意,target
已弃用。I must preface by saying that frames are pretty much frowned upon on the web these days. They're deprecated, they're not a good user experience, it's very difficult to link or bookmark a page, etc etc...
Add
target="_top"
to your logout link. It will target the "top" page (the one which defines all the frames). Also note thattarget
is deprecated.…与您想要点击顶部窗口而不是当前帧的其他任何内容一样。
… same as anything else you want to hit the top window instead of the current frame.