开发者

Accessing browser events in chrome extension - DOM events in chrome extension

I am writing a chrome plugin in which I would like to receive events such as "load", "unload" of window and page. However, I'm not getting any concrete clue to start with.

Can anyone tell me how to capture DOM event in p开发者_开发知识库lugin?

Does Chrome support this feature?

Thank you.


You would need Content Scripts and you just add normal browser events to the JavaScript you inject as you stated in your question. Every page will have that content script and it will listen on those events.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜