albertosh
albertosh

Reputation: 2526

Communicate with iFrame code (Chrome Extension)

Happy new year :)

I have a Chrome extension which is a popup that contains an iframe, inside that iframe i load a whole web app. my question is

Thanks for all the help!

Upvotes: 0

Views: 1723

Answers (1)

gengkev
gengkev

Reputation: 1959

Use a content script that loads inside that frame. They can access the DOM of that page and make calls to the background page, though it's a bit harder to be able to communicate with the JavaScript on that page - but DOM elements should be fine if you control both the iframe and the extension.

See http://code.google.com/chrome/extensions/content_scripts.html

Upvotes: 1

Related Questions