Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

open new window chrome extension

chrome.browserAction.onClicked.addListener(function(tab) {
  chrome.windows.create({
    // Just use the full URL if you need to open an external page
    url: chrome.runtime.getURL("mypage.html")
  });
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #open #window #chrome #extension
ADD COMMENT
Topic
Name
7+6 =