How To Make Chrome Open Pages In New Tabs
I just want to open all pages in new tabs... Is it about chrome or my codes? Before formatting computer i can do that with this code, but now the first link open in new tab and the
Solution 1:
If you are writing a Chrome extension then you can use the chrome.tabs
API:
chrome.tabs.create({ url: "http://www.google.com/" });
See the documentation at: http://developer.chrome.com/extensions/tabs.html
To people who vote to close this question:
All of the linked "Possible duplicate" questions are browser-agnostic and all of the answers say that doing that is impossible. This question on the other hand is Chrome-specific and there is a Chrome-specific API that can be used to do just that for Chrome extensions. So I wouldn't say that this question is a duplicate or that the answers to linked questions are particularly relevant.
Post a Comment for "How To Make Chrome Open Pages In New Tabs"