获取父窗口的iframe并改变其地址

   window.parent.document.getElementById("myiframe").src='ToGisDetail.action?GId=" + GId' ;

js在父页面获取iframe子页面元素代码如下:

window.frames["iframe_ID"].document.getElementById("元素id");

猜你喜欢

转载自blog.csdn.net/qq_40216244/article/details/92586661