js操作iframe父子窗体示例_javascript技巧:父窗体获取iframe window.iframeId iframe获取父窗口 window.parent parent.html 代码如下: Insert title here function btnFn(){ window.subWin.test(); } function get(name){ return document
导读js操作iframe父子窗体示例_javascript技巧:父窗体获取iframe window.iframeId iframe获取父窗口 window.parent parent.html 代码如下: Insert title here function btnFn(){ window.subWin.test(); } function get(name){ return document
父窗体获取iframe
window.iframeId
iframe获取父窗口
window.parent
parent.html 代码如下:
Insert title here
function btnFn(){ window.subWin.test(); } function get(name){ return document.getElementById(name); } script>
function test(){ alert(window.parent.get("name").value);//结果:222 }
script>
我是窗体的内容
js操作iframe父子窗体示例_javascript技巧
js操作iframe父子窗体示例_javascript技巧:父窗体获取iframe window.iframeId iframe获取父窗口 window.parent parent.html 代码如下: Insert title here function btnFn(){ window.subWin.test(); } function get(name){ return document