萬盛學電腦網

 萬盛學電腦網 >> 腳本專題 >> javascript >> js 有框架頁面跳轉

js 有框架頁面跳轉

  1.跳出框架,在父頁面。

jsp:

<script language="javascript">

window.parent.frames.location.href="../welcome.en"

</script>

java:

PrintWriter out = response.getWriter();

out.write("<script type='text/javascript'>window.parent.frames.location.href = '../welcome.en';</script>");

return;

2.從一個框架跳轉到 name="main" 的框架裡。

<script language="javascript">

var key = document.getElementById(" ## ").value;

window.parent.main .location.href= "welcome.en ? key=" + key;

</script>

3.ContentList 當前頁的iframe名字

window.ContentList.location.href = '../welcome.en';

copyright © 萬盛學電腦網 all rights reserved