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