iframe如何获取子窗口单选框的value
iframe如何获取子窗口单选框的value
iframe如何获取子窗口单选框的value
iframe如何获取子窗口单选框的value
iframe如何获取子窗口单选框的value
iframe如何获取子窗口单选框的value
父窗口获取子窗口元素 $(this).contents().find("#子窗口元素id。。")
http://blog.csdn.net/xing_sky/article/details/8519520
iframe和父页,window.open打开页面之间的引用
iframe 就是一个内嵌的子窗口。
首先父页面index.htm
有一个变量
var isPhoto=1;那么如何在Iframe页面获取父js变量,和对象呢?
frameIn.htm页面代码
alert(parent.isPhoto); alert(parent.document.getElementById('yq').value); //如果是jquery取对象,可以这样:$('#objID',parent.document) alert($('#yq', parent.document).val());