I am making a chrome extension and I am loading a webpage using iFrame. But, I want all actions that come from it (ex. users click on a link, searches if there is searchbox) to go to with no iFrame (to leave the iFrame and load the other page normally).
other
Alternatives of this may be if I don’t use any iFrame but div or something else to load the webpage on it.
You should be able to add the permissions for the domain of the iframe to your extension’s manifest and implement a content script for that domain as well.
Use the Google API for message passing to pass information between the content scripts for the two domains (since this is disallowed by the Same Origin Policy for normal pages)
See the message passing doc here