naugtur / insertionQuery

Non-dom-event way to catch nodes showing up. And it uses selectors.
Other
193 stars 32 forks source link

Target iframe DOM #29

Closed MarioVanDenEijnde closed 7 years ago

MarioVanDenEijnde commented 7 years ago

Can we use this excellent approach to target an iframe DOM also?

Actually we need to target a DOM element inside an iframe that is inside an iframe ;-(

Please advise.

Kind regards, Mario

naugtur commented 7 years ago

Look into seamless iframes maybe, if you're in the same origin as all iframe ocntents, but generally, I don't think it'd be possible. You should run this in the iframe at the bottom and use postmessage to communicate up.