Reputation: 17
I have a functional default Popup and now I want to instead inject that popup.html with an iframe into the Dom. Have it toggled to show and hide with the browseraction onclick. I can't find any good solution on this. Any suggestions would be appreciated.
Upvotes: 1
Views: 816
Reputation: 3249
if I understood correctly, use content script
or execute script that add the iframe dynamically via the chrome.tabs.executeScript()
method
Running javascript from contentscript is the best way to manipulate the DOM
Upvotes: 1