Web浏览器的事件日志浏览器、事件、日志、Web

2023-09-03 06:40:57 作者:繁华殆尽丶盡是殤

我要开发一个控制台应用程序,将监测并列出所有通过浏览器触发的事件:的 Internet Explorer 8中, Mozilla Firefox浏览器和的谷歌Chrome浏览器。

I have to develop a console application that would monitor and list all the events fired by browsers: Internet Explorer 8, Mozilla Firefox and Google Chrome.

需要研究哪些主题?你能帮助我在某些方面?

What topics need to be studied? Can you help me in some ways?

推荐答案

如果这是谷歌浏览器或Mozilla Firefox,我是pretty的多相信你可以在安装你的插件/扩展听取事件浏览器。这样做是pretty的容易在这些浏览器。

If it is Google Chrome or Mozilla Firefox, I'm pretty much sure you could listen to the events by installing your plug-in/extension in the browser. Doing this is pretty easy in these browsers.

我假定铬的时刻,

chrome.tabs.onSelectedChanged(function(){..}); //This will listen to tab-selection related events..
chrome.tabs.onCreate(function(){..}); //This will get fired when a new tab is opened..

通过编写一个插件的浏览器我敢肯定,你可以听百来个这样的事件!

By writing a plug-in for the browser I'm sure you can listen to hundred more such events!

有关谷歌浏览器是指:链接

For Google Chrome refer to: Link

有关Mozi​​lla Firefox浏览器是指:链接

For Mozilla Firefox refer to: Link

有关Internet Explorer中,我相信没有学习的东西集中的地方,但我敢肯定你会得到的页面加载为您提供的教程。它只是谷歌了! :P

For Internet Explorer, I believe there is no central place to learn stuff, but I'm sure you will get loads of pages offering you the tutorial. Just google it out! :P

其实建立一个控制台应用程序是一种困难的;除非你能够得到的句柄浏览器,监听传递的消息,捕捉那些事件,配件那样!如果你能告诉我们您正在尝试做的究竟是什么,也许我们可以帮你! :)

Actually building a console application is kind of difficult; unless you are able to get the HANDLE to the browser, listen for messages passed, catch those event and stuffs like that! If you could tell us what exactly you are trying to do, maybe we can help you! :)

我希望这可以解决您的问题。

I hope this resolves your query.