Find solution

how to open a link in new tab in chrome extension?

Check our answers to ‘how to open a link in new tab in chrome extension?’ - we found 21 replies and comments relevant to this matter. The best answers are submitted by users of Stack Overflow, Quora and Yahoo! Answers.

Best solution

  • Open link in a tab from chrome extension's iframe

    I have developed a pop up extension for google chrome. I have added an iframe in that popup. Now when i try to open a link from that iframe.. its not working.. its not even working within the iframe itself. i need the links in iframe to be opened in a new tab. I tried writing some scripts which can change href in a to be opened in a new tab or in the same tab. But how to do that for an iframe. Note: The page loaded in iframe is in my control and can be changed if needed.


    Put <base target="_blank"/> into <head> of that iframe. You can also mark individual...

    Mark as irrelevant Undo

Other solutions