繁体   English   中英

JSP 和 HTML 车架组

[英]JSP and HTML frameset

我在 html (GUI) 中使用框架集。 我的 GUI 由 header、页脚、侧边导航和内容页面四部分组成。

现在我在 header 框架集中提供了注销按钮的功能。 重定向后新的 JSP 页面仅显示在 header 中,不在 window 中(窗口仍然包含上述所有框架集)

我想在整个 window 上显示这个新的重定向页面。

您应该在客户端执行此操作。

<form action="/logout" method="post" target="_top">
<input type="submit" name="logout" value="Logout">
</form>

如果您重定向到的页面之一不应该有外框,您可以使用 javascript 来突破

// run this javascript on the logout landing page and it will remove the frames
if (parent.frames.length>0){
   parent.location.href=self.document.location;
}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM