javascript - How to Make Chrome Open Pages in New Tabs -
i want open pages in new tabs... chrome or codes? before formatting computer can code, first link open in new tab , others open in new window. think of chrome options broken or something...
for (var = 0; < 2; i++) { window.open(document.getelementbyid("threads").getelementsbyclassname("title")[i].getattribute("href")); }
if writing chrome extension can utilize chrome.tabs
api:
chrome.tabs.create({ url: "http://www.google.com/" });
see documentation at: http://developer.chrome.com/extensions/tabs.html
to people vote close question:all of linked "possible duplicate" questions browser-agnostic , of answers doing impossible. question on other hand chrome-specific , there chrome-specific api can used chrome extensions. wouldn't question duplicate or answers linked questions particularly relevant.
javascript google-chrome
No comments:
Post a Comment