熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> Java編程 >> JSP教程 >> 正文

js 有框架頁面跳轉

2022-06-13   來源: JSP教程 

  跳出框架在父頁面

  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
    推薦文章
    Copyright © 2005-2022 電腦知識網 Computer Knowledge   All rights reserved.