Home > front end >  Win. Open the parent page was operating elements on the page
Win. Open the parent page was operating elements on the page

Time:10-20

I see in the Internet, some people say that can operate on page elements,
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 name
General browsers do not allow the two different pages within the domain name to access and manipulate each other,

  • Related