简体   繁体   中英

Access work javascript in main site from iframe

I have a problem with the script loaded from outside site. Sometimes not loaded and all script in main site is stoped by core js in browsers.

I put the script into the iframe. JS wants to eliminate the influence of the iframe to the main page and do not know how to do it.

SECURITY="restricted"?

parent.document

should give you the parent document. If you want anything else in the parent window, use the "parent" instead of "window".
This works in firefox, but the newer IE is very restricted with javascript. I don't know if they are gonna let you do it

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM