简体   繁体   中英

Google Chrome extensions events

Can anyone tell me for chrome extensions how is possible for me to know if a new tab is created or modify. I tried using Content Scripts but i dont realy know how it work.

Use the chrome.tabs* API

http://code.google.com/chrome/extensions/tabs.html#event-onCreated

There is an onCreate method that is fired when new tabs are created :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM