Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

chrome.tab.onupdated

chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) {
   alert(changeInfo.url);
}); 

chrome.tabs.onActivated.addListener(function(activeInfo) {
  // how to fetch tab url using activeInfo.tabid
  chrome.tabs.get(activeInfo.tabId, function(tab){
     console.log(tab.url);
  });
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: cors express tutorial 
Javascript :: js iterate match indexes 
Javascript :: angularjs accordion access toggle 
Javascript :: jquery on focus 
Javascript :: mmap() failed: [12] Cannot allocate memory composer 
Javascript :: javascript get all child elements 
Javascript :: jquery remove multiple classes 
Javascript :: useeffect skip first render 
Javascript :: `useFindAndModify` is an invalid option. 
Javascript :: random numbers javascript 
Javascript :: jquery ajax on fail 
Javascript :: generate id js 
Javascript :: get first 2 digits of number javascript 
Javascript :: how to validate file type in jquery 
Javascript :: how to read 2 dimensional array in javascript 
Javascript :: html form post json example 
Javascript :: how to use Space for vertically in antd 
Javascript :: javascript class access static property 
Javascript :: node exporter service 
Javascript :: how to create immutable object in javascript 
Javascript :: How can I know which radio button is selected via jQuery 
Javascript :: js isset 
Javascript :: add react to existing project 
Javascript :: how to launch several async functions in node js 
Javascript :: js capitalize first letter 
Javascript :: dynamic folder import javascript 
Javascript :: how to get console text in cypress 
Javascript :: google maps autocomplete js events 
Javascript :: infinity javascript 
Javascript :: sequelize findone 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =