跳出框架在父頁面
jsp:
<script language="javascript">
windowparentframeslocationhref="/welcomeen"
</script>
java:
PrintWriter out = responsegetWriter();
outwrite("<script type=text/javascript>windowparentframeslocationhref = /welcomeen;</script>");
return;
從一個框架跳轉到 name="main" 的框架裡
<script language="javascript">
var key = documentgetElementById(" ## ")value;
windowparentmain locationhref= "welcomeen ? key=" + key;
</script>
ContentList 當前頁的iframe名字
windowContentListlocationhref = /welcomeen;
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20616.html