window.parent.document.getElementById("myiframe").src='ToGisDetail.action?GId=" + GId' ;
js在父页面获取iframe子页面元素代码如下:
window.frames["iframe_ID"].document.getElementById("元素id");
window.parent.document.getElementById("myiframe").src='ToGisDetail.action?GId=" + GId' ;
js在父页面获取iframe子页面元素代码如下:
window.frames["iframe_ID"].document.getElementById("元素id");