求助:父页面,怎么获取子页面的值 一个页面,弹出另一个页面。父页面,怎么获取子页面的值。子页面,又怎么读取父页面的值。高手帮忙 了。。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 window.open还是window.showModalDialog 方法?前者使用opener 对象,后者采用showModalDialog("url",window)进行传递窗口对象 vReturnValue = window.showModalDialog(sURL [, vArguments] [, sFeatures])window.showModalDialog("showModalDialog_target.htm", "",sFeatures 父页面var sonWin=window.open('aaa.html','bbbb');alert(sonWin.document.body.innerHTML);子页面var parentWin=window.opener;alert(parentWin.document.body.innerHTML); 例子+教程http://blog.csdn.net/net_lover/archive/2002/09/24/6910.aspx 利用js通过NTLM验证(可能需要其他东西辅助) 弱弱的问一下,有没有在成都的熟悉JS的朋友 如何使b.php只能iframe到指定的a.php里面? 点击某个层取得层上的内容 请教下关于面向对象单一原则和相关的接口功能问题 如何使用Javascript在IE上生成浮动工具条? 想问下各位,CSDN为什么如此耗资源? MzTree的target属性不好用阿 怎样判断只能让用户输入中文和英文?别的都不可以?? 如何知道客户端的页宽 在线急等 如何获取网页中图片的句柄 取<tr>的innerHTML的总和,谢谢
还是
window.showModalDialog
方法?
前者使用opener 对象,后者采用
showModalDialog("url",window)
进行传递窗口对象
vReturnValue = window.showModalDialog(sURL [, vArguments] [, sFeatures])
window.showModalDialog("showModalDialog_target.htm", "",
sFeatures
alert(sonWin.document.body.innerHTML);子页面var parentWin=window.opener;
alert(parentWin.document.body.innerHTML);
http://blog.csdn.net/net_lover/archive/2002/09/24/6910.aspx