简体   繁体   中英

Replace scripts inside 3rd party iframe

I am using a 3rd party iframe who has its own scripts. My boss requested that I need change the inner scripts of the iframe. I spent most of my day researching about that, but I cannot find anything about that (at least that works). I need to put my own script inside the head of the iframe. Is it even posible solve this with javascript?

This is not possible due to security reasons. If you can't access iframe source, you can't 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