Get the parent window of the iframe and change its address

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

js iframe acquisition sub-page elements in the parent page code is as follows:

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

Guess you like

Origin blog.csdn.net/qq_40216244/article/details/92586661