1

Possible Duplicate:
Javascript - how can i open a link in new tab (and not new window)?

I'm writing a extension to give a options to users that forcing chrome to open AD links in new tabs instead of opening in the same window. I want to know if there is a way to do so without modifying "target = '_top'" in the tag? Those AD links all are in iframes, I don't want to inject content script into all of those iframes.

Community
  • 1
  • 1
Zac
  • 21
  • 1
  • 3

1 Answers1

0

You can use chrome.tabs.create(options) to create a new tab in a Chrome extension.

Michael Aaron Safyan
  • 93,612
  • 16
  • 138
  • 200
  • What listener should I use to intercept the event of open link in the same window in order to prevent the default event, get the url and using chrome.tabs.create to create the new tab? – Zac Dec 16 '12 at 05:08