开发者

How do I add listener to new page entering in Chrome Extensions?

I'm trying to develop an extension to Google Chrome and I'm looking for a listener that can notify my ex开发者_StackOverflow社区tension when getting to a new page (that means according to my definition that the address was changed) and allow me to process the address of the page and react accordingly (like changing the badge).

Can anyone please refer me to such listener ?

Thanks in advance


Take a look at the chrome.tabs.onUpdated event which fires if the tab's url has changed.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜