比如说A.jsp中的 iframe 的id为A, B.jsp中的iframe的id为 B,那么可以这样取
var i1 = document.getElementById('A');
//alert(i1.contentWindow.document.body.innerHTML);
var value = i1.contentWindow.document.getElementById('B').contentWindow.document.getElementById('要取对象的id')
alert(value);
var i1 = document.getElementById('A');
//alert(i1.contentWindow.document.body.innerHTML);
var value = i1.contentWindow.document.getElementById('B').contentWindow.document.getElementById('要取对象的id')
alert(value);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货