Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get url of page in background script

chrome.tabs.query({
  active: true,
  currentWindow: true
}, function(tabs) {
  var tab = tabs[0];
  var url = tab.url;
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #url #page #background #script
ADD COMMENT
Topic
Name
7+9 =