开发者

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

开发者 https://www.devze.com 2022-12-30 09:57 出处:网络
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.

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

精彩评论

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