欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

js 有框架頁面跳轉(zhuǎn)(target)三種情況下的應(yīng)用

 更新時間:2013年04月09日 18:15:47   作者:  
本文主要介紹下有框架頁面的跳轉(zhuǎn):跳出框架,在父頁面;從一個框架跳轉(zhuǎn)到 name=main的框架里;ContentList 當(dāng)前頁的iframe名字,感興趣的朋友可以了解下哈
1.跳出框架,在父頁面。
jsp:
復(fù)制代碼 代碼如下:

<script language="javascript">
window.parent.frames.location.href="../welcome.en"
</script>

java:
復(fù)制代碼 代碼如下:

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

2.從一個框架跳轉(zhuǎn)到 name="main" 的框架里。
復(fù)制代碼 代碼如下:

<script language="javascript">
var key = document.getElementById(" ## ").value;
window.parent.main .location.href= "welcome.en ? key=" + key;
</script>

3.ContentList 當(dāng)前頁的iframe名字
復(fù)制代碼 代碼如下:

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

相關(guān)文章

最新評論