Such as https://blog.csdn.net/persistencequxi/article/details/79008534
But I test:
Var infoWindow=window. The open (' https://www.baidu.com ');
InfoWindow. onl oad=function () {
InfoWindow. Document. GetElementById (" kw "). The value="https://bbs.csdn.net/topics/sdfwefasdfw";
}
The above code is invalid,
CodePudding user response:
Cross domain, you can only operate with this page in the same page, within the domain nameGeneral browsers do not allow the two different pages within the domain name to access and manipulate each other,