怎么用js获取window.open或window.showModelessDialog()打开的“子页面”的html内容。

JavaScript012

怎么用js获取window.open或window.showModelessDialog()打开的“子页面”的html内容。,第1张

window.open('ceshi.html')

就可以打开你想要的页面;

window.open("ceshi.php?a=1&b=2")

这样可以带参数;

填写第二个参数

window('a.html','浏览器大小工具栏是否显示等')

document.getElementById ("frameID").contentWindow.document.getElementById ('dengru')

<iframe id="frameID" height="300" width="500" src="main.html"></iframe>