如何跟踪或调试所有可用的javascript事件 [英] How to trace or debug all available javascript events
问题描述
如何跟踪网页的所有javascript事件?
How can I trace all javascript events of a Webpage?
是否有可能跟踪所有事件,即使没有附加处理程序?
Is there a possibility to trace all events, even such without a handler attached?
那里有没有工具可以做到这一点?
Is there any tool out there, that can do this?
澄清:
例如:
对于文本输入,我可以为 onblur 和<添加事件处理程序EM>平变化。
For a text input i can add an event handler for onblur and onchange.
如果我(在浏览器中)更改了文本字段的值并保留它,则会执行两个事件处理程序。
现在我想知道我错过了哪些其他事件(如果附加了事件处理程序就会执行的事件)。
If I (in the browser) change the value of the textfield and leave it, both eventhandlers are executed. Now I would like to know which other events I "have missed" (the ones which would have been executed if there was an eventhandler attached).
澄清2:
我可以获取所有可能事件的列表(在给定元素上)我可以附加事件处理程序?
Can I get a list(on a given element) of all possible events I can attach an eventhandler?
推荐答案
以下是Javascript事件列表: http://www.quirksmode.org/dom/events/index.html
Here is a list of Javascript events: http://www.quirksmode.org/dom/events/index.html
这篇关于如何跟踪或调试所有可用的javascript事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!