国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通VIP
window.dialogArguments js取得父窗口中l(wèi)ist
主窗口:a.html
<代碼>
<html>
<body>
<INPUT TYPE="button" VALUE="" ONCLICK="javascript:aa();">
</body>
<script type="text/javascript">
//向彈出頁傳入的數(shù)組
var jsjh=new Array('a','b');
    alert(jsjh[0]);
function aa(){
//在路徑后寫上要出入的數(shù)組 "iframe.html",jsjh
window.showModalDialog("iframe.html",jsjh, 'dialogHeight:600px; dialogWidth:1000px; dialogLeft:(screen.availWidth/2-100); dialogTop:(screen.availHeight/2-50);center: yes;help:no;resizable:no;status:yes');
}
</script>
</html>
<代碼>
框架頁:iframe.html
<代碼>
<body>
<iframe src="in.html"  frameborder="1" height="100%" name="kkk" scrolling="auto" width="100%"></iframe>
</body>
<代碼>
彈出頁面主頁:in.html
<代碼>
<html>
<body>
<script type="text/javascript">
//彈出頁接收父頁面?zhèn)鱽淼臄?shù)組 firefox需要加parent IE不需要
var  a  = window.parent.dialogArguments;
      alert(a);
</script>
<iframe name="mainframe" marginwidth="0" marginheight="0" frameborder="0" src="in1.html" width="100%" scrolling="no" border="1" onload="this.height=450"></iframe>
<iframe name="mainframe2" marginwidth="0" marginheight="0" frameborder="0" src="in2.html" width="100%" scrolling="auto" border="1" onload="this.height=450"></iframe>
 </body>
</html>
<代碼>
彈出頁面中iframe1:in1.html
<代碼>
<html>
<body>iframe1</body>
<script type="text/javascript">
//在iframe中取得in.html中的數(shù)組a
var  a  = parent.a;
alert(a[0]+"ffff");
</script>
</html>
<代碼>
彈出頁面中iframe2:in2.html
<代碼>
<html>
<body>iframe2</body>
<script type="text/javascript">
</script>
</html>
<代碼>
本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
網(wǎng)頁代碼
window.showModalDialog刷新父窗口 父子窗口之間傳值 問題
Dreamweaver網(wǎng)頁制作基礎(chǔ)大全
網(wǎng)頁禁止右鍵代碼
常用的HTML代碼
網(wǎng)頁設(shè)計(jì)常用的一些技巧*****
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服