I have an question about “executeScript“. I know chrome extension can use chrome.tabs.executeScript to inject javascript code to page,but can I inject some code into the iframe page(not the same origin with parent page)? I’m create an extension that I want to access the iframe from parent page(like listen click event in iframe..),but XMLHttpRequest seem not to access iframe page.
I have an question about executeScript . I know chrome extension can use chrome.tabs.executeScript
Share
Set
allFrames: trueto have the script execute in the tab iframes as well.method-executeScript