2011-07-13 39 views
0

我在我的HTML(GUI)中使用framset。我的gui包含四部分頁眉,頁腳,側面導航和內容頁面。JSP和HTML FRAMESET

現在我可以在頭框架集中提供註銷按鈕的功能。重定向後,新的jsp頁面僅顯示在不在窗口中的標題中(Window仍包含上述所有framsets)

我想在整個窗口中顯示此新的重定向頁面。 請儘快幫助

+2

我求求你,請不要使用框架外框架的頁面之一 - 神殺死一隻小貓每次使用框架製作新網站時。 –

回答

0

您應該在客戶端執行此操作。

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

如果您重定向到不應該有,你可以使用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; 
}