簡體   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