How to find out which JavaScript events fired?How to debug JavaScript / jQuery event bindings with Firebug or similar tools?How do I view events fired on an element in Chrome DevTools?Watir- How can I put a hover on any HTML elementHow to use Watir with Javascript triggered elementsWatir: fire_event is not working where as click works fine in IEPre-loading browser clipboard for testing pasting into fields with watir-webdriverUnable to click button - WatirIn Watir, how can I interact with an element that is initially “hidden?”Track all JavaScript events in Firefox as they fireWatir and text field autocomplete listHow to validate an email address in JavaScriptHow do JavaScript closures work?Which “href” value should I use for JavaScript links, “#” or “javascript:void(0)”?How do I remove a property from a JavaScript object?How do you get a timestamp in JavaScript?Which equals operator (== vs ===) should be used in JavaScript comparisons?How do I include a JavaScript file in another JavaScript file?How to check whether a string contains a substring in JavaScript?How do I remove a particular element from an array in JavaScript?How do I view events fired on an element in Chrome DevTools?
How can I oppose my advisor granting gift authorship to a collaborator?
Ideal characterization of almost convergence
How do I stop making people jump at home and at work?
Using GNU screen, I get raw prompt with backslashes
Function of the separated, individual solar cells on Telstar 1 and 2? Why were they "special"?
What does this sign on a hiking trail communicate?
Can an intercepting fighter jet force a small propeller aircraft down without completely destroying it?
Does secure hashing imply secure symmetric encryption?
How can I portray a character with no fear of death, without them sounding utterly bored?
Map a function that takes arguments in different levels of a list
What is the significance of 104%
If the UK government illegally doesn't ask for article 50 extension, can parliament do it instead?
Solve this icositetragram
How did Gollum know Sauron was gathering the Haradrim to make war?
Why wasn't Linda Hamilton in T3?
Unkown DIP IC (OP277PA)
How could reincarnation magic be limited to prevent overuse?
How to add some symbol (or just add newline) if the numbers in the text are not continuous
What percentage of the mass/energy of the universe is in the form of electromagnetic waves?
How Total raw is calculated for Science pack 2?
Why do we need explainable AI?
Meaning of "offen balkon machen"?
Why can't I summon my friend to help me?
Declaring 2 (or even multi-) dimensional std::arrays elegantly
How to find out which JavaScript events fired?
How to debug JavaScript / jQuery event bindings with Firebug or similar tools?How do I view events fired on an element in Chrome DevTools?Watir- How can I put a hover on any HTML elementHow to use Watir with Javascript triggered elementsWatir: fire_event is not working where as click works fine in IEPre-loading browser clipboard for testing pasting into fields with watir-webdriverUnable to click button - WatirIn Watir, how can I interact with an element that is initially “hidden?”Track all JavaScript events in Firefox as they fireWatir and text field autocomplete listHow to validate an email address in JavaScriptHow do JavaScript closures work?Which “href” value should I use for JavaScript links, “#” or “javascript:void(0)”?How do I remove a property from a JavaScript object?How do you get a timestamp in JavaScript?Which equals operator (== vs ===) should be used in JavaScript comparisons?How do I include a JavaScript file in another JavaScript file?How to check whether a string contains a substring in JavaScript?How do I remove a particular element from an array in JavaScript?How do I view events fired on an element in Chrome DevTools?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have a select list:
<select id="filter">
<option value="Open" selected="selected">Open</option>
<option value="Closed">Closed</option>
</select>
When I select Closed
the page reloads. In this case it shows closed tickets (instead of opened). It works fine when I do it manually.
The problem is that the page does not reload when I select Closed
with Watir:
browser.select_list(:id => "filter").select "Closed"
That usually means that some JavaScript event is not fired. I can fire events with Watir:
browser.select_list(:id => "filter").fire_event "onclick"
but I need to know which event to fire.
Is there a way to find out which events are defined for an element?
javascript events watir dom-events browser-automation
add a comment |
I have a select list:
<select id="filter">
<option value="Open" selected="selected">Open</option>
<option value="Closed">Closed</option>
</select>
When I select Closed
the page reloads. In this case it shows closed tickets (instead of opened). It works fine when I do it manually.
The problem is that the page does not reload when I select Closed
with Watir:
browser.select_list(:id => "filter").select "Closed"
That usually means that some JavaScript event is not fired. I can fire events with Watir:
browser.select_list(:id => "filter").fire_event "onclick"
but I need to know which event to fire.
Is there a way to find out which events are defined for an element?
javascript events watir dom-events browser-automation
This question lists more tools: stackoverflow.com/questions/570960/…
– Željko Filipin
Sep 24 '10 at 14:11
2
Visual Event, sprymedia.co.uk/article/Visual+Event . I am sure that that will help half of the people landing on this stackoverflow page :)
– Cedric
Jul 25 '12 at 1:40
add a comment |
I have a select list:
<select id="filter">
<option value="Open" selected="selected">Open</option>
<option value="Closed">Closed</option>
</select>
When I select Closed
the page reloads. In this case it shows closed tickets (instead of opened). It works fine when I do it manually.
The problem is that the page does not reload when I select Closed
with Watir:
browser.select_list(:id => "filter").select "Closed"
That usually means that some JavaScript event is not fired. I can fire events with Watir:
browser.select_list(:id => "filter").fire_event "onclick"
but I need to know which event to fire.
Is there a way to find out which events are defined for an element?
javascript events watir dom-events browser-automation
I have a select list:
<select id="filter">
<option value="Open" selected="selected">Open</option>
<option value="Closed">Closed</option>
</select>
When I select Closed
the page reloads. In this case it shows closed tickets (instead of opened). It works fine when I do it manually.
The problem is that the page does not reload when I select Closed
with Watir:
browser.select_list(:id => "filter").select "Closed"
That usually means that some JavaScript event is not fired. I can fire events with Watir:
browser.select_list(:id => "filter").fire_event "onclick"
but I need to know which event to fire.
Is there a way to find out which events are defined for an element?
javascript events watir dom-events browser-automation
javascript events watir dom-events browser-automation
edited Aug 27 at 21:18
Brian Tompsett - 汤莱恩
4,46714 gold badges40 silver badges108 bronze badges
4,46714 gold badges40 silver badges108 bronze badges
asked Sep 24 '10 at 13:27
Željko FilipinŽeljko Filipin
41.1k27 gold badges83 silver badges121 bronze badges
41.1k27 gold badges83 silver badges121 bronze badges
This question lists more tools: stackoverflow.com/questions/570960/…
– Željko Filipin
Sep 24 '10 at 14:11
2
Visual Event, sprymedia.co.uk/article/Visual+Event . I am sure that that will help half of the people landing on this stackoverflow page :)
– Cedric
Jul 25 '12 at 1:40
add a comment |
This question lists more tools: stackoverflow.com/questions/570960/…
– Željko Filipin
Sep 24 '10 at 14:11
2
Visual Event, sprymedia.co.uk/article/Visual+Event . I am sure that that will help half of the people landing on this stackoverflow page :)
– Cedric
Jul 25 '12 at 1:40
This question lists more tools: stackoverflow.com/questions/570960/…
– Željko Filipin
Sep 24 '10 at 14:11
This question lists more tools: stackoverflow.com/questions/570960/…
– Željko Filipin
Sep 24 '10 at 14:11
2
2
Visual Event, sprymedia.co.uk/article/Visual+Event . I am sure that that will help half of the people landing on this stackoverflow page :)
– Cedric
Jul 25 '12 at 1:40
Visual Event, sprymedia.co.uk/article/Visual+Event . I am sure that that will help half of the people landing on this stackoverflow page :)
– Cedric
Jul 25 '12 at 1:40
add a comment |
4 Answers
4
active
oldest
votes
Just thought I'd add that you can do this in Chrome as well:
Ctrl + Shift + I (Developer Tools) > Sources> Event Listener Breakpoints (on the right).
You can also view all events that have already been attached by simply right clicking on the element and then browsing its properties (the panel on the right).
For example:
Not sure if it's quite as powerful as the firebug option, but has been enough for most of my stuff.
Another option that is a bit different but surprisingly awesome is Visual Event:
http://www.sprymedia.co.uk/article/Visual+Event+2
It highlights all of the elements on a page that have been bound and has popovers showing the functions that are called. Pretty nifty for a bookmark! There's a Chrome plugin as well if that's more your thing - not sure about other browsers.
AnonymousAndrew has also pointed out monitorEvents(window);
here
2
I could not figure out how to see which events fired with either of ways you have suggested.
– Željko Filipin
Feb 18 '12 at 22:43
1
Update: it's notScripts
inside the Dev tools (or inspector), you have to go intoSources
and then look at the menu on the right.
– aledalgrande
May 1 '14 at 0:30
@aledalgrande Thanks, have updated. (For anyone reading, this only applies to the first solution, the second still uses the inspector).
– Chris
May 1 '14 at 5:08
add a comment |
Looks like Firebug (Firefox add-on) has the answer:
- open Firebug
- right click the element in HTML tab
- click
Log Events
- enable Console tab
- click Persist in Console tab (otherwise Console tab will clear after the page is reloaded)
- select
Closed
(manually) there will be something like this in Console tab:
...
mousemove clientX=1097, clientY=292
popupshowing
mousedown clientX=1097, clientY=292
focus
mouseup clientX=1097, clientY=292
click clientX=1097, clientY=292
mousemove clientX=1096, clientY=293
...
Source: Firebug Tip: Log Events
4
Thanks so much, I didn't know about that Firebug feature. Perhaps I need to actually RTFM some time.
– Marcel Korpel
Sep 24 '10 at 13:36
I did not know about it until a few minutes ago. I was writing the question and found the answer along the way. :)
– Željko Filipin
Sep 24 '10 at 13:39
Your question looks a lot like mine (self answered, with self-comments).
– vol7ron
Sep 5 '11 at 2:17
2
A recent blog entry from Firebug's developer: softwareishard.com/blog/firebug/firebug-tip-log-dom-events
– jakub.g
Nov 15 '12 at 22:13
1
Hi, I tried right click on firebug but I can't find the option Log Events, can you please help me how to find this one?
– Rajagopalan
Jun 17 '18 at 15:03
|
show 2 more comments
Regarding Chrome, checkout the monitorEvents() via the command line API.
- Open the console via Menu > Tools > JavaScript Console.
- Enter
monitorEvents(window);
View the console flooded with events
...
mousemove MouseEvent dataTransfer: ...
mouseout MouseEvent dataTransfer: ...
mouseover MouseEvent dataTransfer: ...
change Event clipboardData: ...
...
There are other examples in the documentation. I'm guessing this feature was added after the previous answer.
5
Nice! In conjunction with jQuery:monitorEvents($('#element').get())
– Klaus
Feb 18 '16 at 14:44
1
To stop monitoring useunmonitorEvents(window)
– Augustas
Jun 17 at 12:49
add a comment |
You can use getEventListeners in your Google Chrome developer console.
getEventListeners(object) returns the event listeners registered on
the specified object.
getEventListeners(document.querySelector('option[value=Closed]'));
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f3787555%2fhow-to-find-out-which-javascript-events-fired%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
Just thought I'd add that you can do this in Chrome as well:
Ctrl + Shift + I (Developer Tools) > Sources> Event Listener Breakpoints (on the right).
You can also view all events that have already been attached by simply right clicking on the element and then browsing its properties (the panel on the right).
For example:
Not sure if it's quite as powerful as the firebug option, but has been enough for most of my stuff.
Another option that is a bit different but surprisingly awesome is Visual Event:
http://www.sprymedia.co.uk/article/Visual+Event+2
It highlights all of the elements on a page that have been bound and has popovers showing the functions that are called. Pretty nifty for a bookmark! There's a Chrome plugin as well if that's more your thing - not sure about other browsers.
AnonymousAndrew has also pointed out monitorEvents(window);
here
2
I could not figure out how to see which events fired with either of ways you have suggested.
– Željko Filipin
Feb 18 '12 at 22:43
1
Update: it's notScripts
inside the Dev tools (or inspector), you have to go intoSources
and then look at the menu on the right.
– aledalgrande
May 1 '14 at 0:30
@aledalgrande Thanks, have updated. (For anyone reading, this only applies to the first solution, the second still uses the inspector).
– Chris
May 1 '14 at 5:08
add a comment |
Just thought I'd add that you can do this in Chrome as well:
Ctrl + Shift + I (Developer Tools) > Sources> Event Listener Breakpoints (on the right).
You can also view all events that have already been attached by simply right clicking on the element and then browsing its properties (the panel on the right).
For example:
Not sure if it's quite as powerful as the firebug option, but has been enough for most of my stuff.
Another option that is a bit different but surprisingly awesome is Visual Event:
http://www.sprymedia.co.uk/article/Visual+Event+2
It highlights all of the elements on a page that have been bound and has popovers showing the functions that are called. Pretty nifty for a bookmark! There's a Chrome plugin as well if that's more your thing - not sure about other browsers.
AnonymousAndrew has also pointed out monitorEvents(window);
here
2
I could not figure out how to see which events fired with either of ways you have suggested.
– Željko Filipin
Feb 18 '12 at 22:43
1
Update: it's notScripts
inside the Dev tools (or inspector), you have to go intoSources
and then look at the menu on the right.
– aledalgrande
May 1 '14 at 0:30
@aledalgrande Thanks, have updated. (For anyone reading, this only applies to the first solution, the second still uses the inspector).
– Chris
May 1 '14 at 5:08
add a comment |
Just thought I'd add that you can do this in Chrome as well:
Ctrl + Shift + I (Developer Tools) > Sources> Event Listener Breakpoints (on the right).
You can also view all events that have already been attached by simply right clicking on the element and then browsing its properties (the panel on the right).
For example:
Not sure if it's quite as powerful as the firebug option, but has been enough for most of my stuff.
Another option that is a bit different but surprisingly awesome is Visual Event:
http://www.sprymedia.co.uk/article/Visual+Event+2
It highlights all of the elements on a page that have been bound and has popovers showing the functions that are called. Pretty nifty for a bookmark! There's a Chrome plugin as well if that's more your thing - not sure about other browsers.
AnonymousAndrew has also pointed out monitorEvents(window);
here
Just thought I'd add that you can do this in Chrome as well:
Ctrl + Shift + I (Developer Tools) > Sources> Event Listener Breakpoints (on the right).
You can also view all events that have already been attached by simply right clicking on the element and then browsing its properties (the panel on the right).
For example:
Not sure if it's quite as powerful as the firebug option, but has been enough for most of my stuff.
Another option that is a bit different but surprisingly awesome is Visual Event:
http://www.sprymedia.co.uk/article/Visual+Event+2
It highlights all of the elements on a page that have been bound and has popovers showing the functions that are called. Pretty nifty for a bookmark! There's a Chrome plugin as well if that's more your thing - not sure about other browsers.
AnonymousAndrew has also pointed out monitorEvents(window);
here
edited Mar 28 at 1:46
answered Sep 5 '11 at 2:02
ChrisChris
3,7634 gold badges25 silver badges97 bronze badges
3,7634 gold badges25 silver badges97 bronze badges
2
I could not figure out how to see which events fired with either of ways you have suggested.
– Željko Filipin
Feb 18 '12 at 22:43
1
Update: it's notScripts
inside the Dev tools (or inspector), you have to go intoSources
and then look at the menu on the right.
– aledalgrande
May 1 '14 at 0:30
@aledalgrande Thanks, have updated. (For anyone reading, this only applies to the first solution, the second still uses the inspector).
– Chris
May 1 '14 at 5:08
add a comment |
2
I could not figure out how to see which events fired with either of ways you have suggested.
– Željko Filipin
Feb 18 '12 at 22:43
1
Update: it's notScripts
inside the Dev tools (or inspector), you have to go intoSources
and then look at the menu on the right.
– aledalgrande
May 1 '14 at 0:30
@aledalgrande Thanks, have updated. (For anyone reading, this only applies to the first solution, the second still uses the inspector).
– Chris
May 1 '14 at 5:08
2
2
I could not figure out how to see which events fired with either of ways you have suggested.
– Željko Filipin
Feb 18 '12 at 22:43
I could not figure out how to see which events fired with either of ways you have suggested.
– Željko Filipin
Feb 18 '12 at 22:43
1
1
Update: it's not
Scripts
inside the Dev tools (or inspector), you have to go into Sources
and then look at the menu on the right.– aledalgrande
May 1 '14 at 0:30
Update: it's not
Scripts
inside the Dev tools (or inspector), you have to go into Sources
and then look at the menu on the right.– aledalgrande
May 1 '14 at 0:30
@aledalgrande Thanks, have updated. (For anyone reading, this only applies to the first solution, the second still uses the inspector).
– Chris
May 1 '14 at 5:08
@aledalgrande Thanks, have updated. (For anyone reading, this only applies to the first solution, the second still uses the inspector).
– Chris
May 1 '14 at 5:08
add a comment |
Looks like Firebug (Firefox add-on) has the answer:
- open Firebug
- right click the element in HTML tab
- click
Log Events
- enable Console tab
- click Persist in Console tab (otherwise Console tab will clear after the page is reloaded)
- select
Closed
(manually) there will be something like this in Console tab:
...
mousemove clientX=1097, clientY=292
popupshowing
mousedown clientX=1097, clientY=292
focus
mouseup clientX=1097, clientY=292
click clientX=1097, clientY=292
mousemove clientX=1096, clientY=293
...
Source: Firebug Tip: Log Events
4
Thanks so much, I didn't know about that Firebug feature. Perhaps I need to actually RTFM some time.
– Marcel Korpel
Sep 24 '10 at 13:36
I did not know about it until a few minutes ago. I was writing the question and found the answer along the way. :)
– Željko Filipin
Sep 24 '10 at 13:39
Your question looks a lot like mine (self answered, with self-comments).
– vol7ron
Sep 5 '11 at 2:17
2
A recent blog entry from Firebug's developer: softwareishard.com/blog/firebug/firebug-tip-log-dom-events
– jakub.g
Nov 15 '12 at 22:13
1
Hi, I tried right click on firebug but I can't find the option Log Events, can you please help me how to find this one?
– Rajagopalan
Jun 17 '18 at 15:03
|
show 2 more comments
Looks like Firebug (Firefox add-on) has the answer:
- open Firebug
- right click the element in HTML tab
- click
Log Events
- enable Console tab
- click Persist in Console tab (otherwise Console tab will clear after the page is reloaded)
- select
Closed
(manually) there will be something like this in Console tab:
...
mousemove clientX=1097, clientY=292
popupshowing
mousedown clientX=1097, clientY=292
focus
mouseup clientX=1097, clientY=292
click clientX=1097, clientY=292
mousemove clientX=1096, clientY=293
...
Source: Firebug Tip: Log Events
4
Thanks so much, I didn't know about that Firebug feature. Perhaps I need to actually RTFM some time.
– Marcel Korpel
Sep 24 '10 at 13:36
I did not know about it until a few minutes ago. I was writing the question and found the answer along the way. :)
– Željko Filipin
Sep 24 '10 at 13:39
Your question looks a lot like mine (self answered, with self-comments).
– vol7ron
Sep 5 '11 at 2:17
2
A recent blog entry from Firebug's developer: softwareishard.com/blog/firebug/firebug-tip-log-dom-events
– jakub.g
Nov 15 '12 at 22:13
1
Hi, I tried right click on firebug but I can't find the option Log Events, can you please help me how to find this one?
– Rajagopalan
Jun 17 '18 at 15:03
|
show 2 more comments
Looks like Firebug (Firefox add-on) has the answer:
- open Firebug
- right click the element in HTML tab
- click
Log Events
- enable Console tab
- click Persist in Console tab (otherwise Console tab will clear after the page is reloaded)
- select
Closed
(manually) there will be something like this in Console tab:
...
mousemove clientX=1097, clientY=292
popupshowing
mousedown clientX=1097, clientY=292
focus
mouseup clientX=1097, clientY=292
click clientX=1097, clientY=292
mousemove clientX=1096, clientY=293
...
Source: Firebug Tip: Log Events
Looks like Firebug (Firefox add-on) has the answer:
- open Firebug
- right click the element in HTML tab
- click
Log Events
- enable Console tab
- click Persist in Console tab (otherwise Console tab will clear after the page is reloaded)
- select
Closed
(manually) there will be something like this in Console tab:
...
mousemove clientX=1097, clientY=292
popupshowing
mousedown clientX=1097, clientY=292
focus
mouseup clientX=1097, clientY=292
click clientX=1097, clientY=292
mousemove clientX=1096, clientY=293
...
Source: Firebug Tip: Log Events
edited Sep 24 '10 at 13:44
answered Sep 24 '10 at 13:32
Željko FilipinŽeljko Filipin
41.1k27 gold badges83 silver badges121 bronze badges
41.1k27 gold badges83 silver badges121 bronze badges
4
Thanks so much, I didn't know about that Firebug feature. Perhaps I need to actually RTFM some time.
– Marcel Korpel
Sep 24 '10 at 13:36
I did not know about it until a few minutes ago. I was writing the question and found the answer along the way. :)
– Željko Filipin
Sep 24 '10 at 13:39
Your question looks a lot like mine (self answered, with self-comments).
– vol7ron
Sep 5 '11 at 2:17
2
A recent blog entry from Firebug's developer: softwareishard.com/blog/firebug/firebug-tip-log-dom-events
– jakub.g
Nov 15 '12 at 22:13
1
Hi, I tried right click on firebug but I can't find the option Log Events, can you please help me how to find this one?
– Rajagopalan
Jun 17 '18 at 15:03
|
show 2 more comments
4
Thanks so much, I didn't know about that Firebug feature. Perhaps I need to actually RTFM some time.
– Marcel Korpel
Sep 24 '10 at 13:36
I did not know about it until a few minutes ago. I was writing the question and found the answer along the way. :)
– Željko Filipin
Sep 24 '10 at 13:39
Your question looks a lot like mine (self answered, with self-comments).
– vol7ron
Sep 5 '11 at 2:17
2
A recent blog entry from Firebug's developer: softwareishard.com/blog/firebug/firebug-tip-log-dom-events
– jakub.g
Nov 15 '12 at 22:13
1
Hi, I tried right click on firebug but I can't find the option Log Events, can you please help me how to find this one?
– Rajagopalan
Jun 17 '18 at 15:03
4
4
Thanks so much, I didn't know about that Firebug feature. Perhaps I need to actually RTFM some time.
– Marcel Korpel
Sep 24 '10 at 13:36
Thanks so much, I didn't know about that Firebug feature. Perhaps I need to actually RTFM some time.
– Marcel Korpel
Sep 24 '10 at 13:36
I did not know about it until a few minutes ago. I was writing the question and found the answer along the way. :)
– Željko Filipin
Sep 24 '10 at 13:39
I did not know about it until a few minutes ago. I was writing the question and found the answer along the way. :)
– Željko Filipin
Sep 24 '10 at 13:39
Your question looks a lot like mine (self answered, with self-comments).
– vol7ron
Sep 5 '11 at 2:17
Your question looks a lot like mine (self answered, with self-comments).
– vol7ron
Sep 5 '11 at 2:17
2
2
A recent blog entry from Firebug's developer: softwareishard.com/blog/firebug/firebug-tip-log-dom-events
– jakub.g
Nov 15 '12 at 22:13
A recent blog entry from Firebug's developer: softwareishard.com/blog/firebug/firebug-tip-log-dom-events
– jakub.g
Nov 15 '12 at 22:13
1
1
Hi, I tried right click on firebug but I can't find the option Log Events, can you please help me how to find this one?
– Rajagopalan
Jun 17 '18 at 15:03
Hi, I tried right click on firebug but I can't find the option Log Events, can you please help me how to find this one?
– Rajagopalan
Jun 17 '18 at 15:03
|
show 2 more comments
Regarding Chrome, checkout the monitorEvents() via the command line API.
- Open the console via Menu > Tools > JavaScript Console.
- Enter
monitorEvents(window);
View the console flooded with events
...
mousemove MouseEvent dataTransfer: ...
mouseout MouseEvent dataTransfer: ...
mouseover MouseEvent dataTransfer: ...
change Event clipboardData: ...
...
There are other examples in the documentation. I'm guessing this feature was added after the previous answer.
5
Nice! In conjunction with jQuery:monitorEvents($('#element').get())
– Klaus
Feb 18 '16 at 14:44
1
To stop monitoring useunmonitorEvents(window)
– Augustas
Jun 17 at 12:49
add a comment |
Regarding Chrome, checkout the monitorEvents() via the command line API.
- Open the console via Menu > Tools > JavaScript Console.
- Enter
monitorEvents(window);
View the console flooded with events
...
mousemove MouseEvent dataTransfer: ...
mouseout MouseEvent dataTransfer: ...
mouseover MouseEvent dataTransfer: ...
change Event clipboardData: ...
...
There are other examples in the documentation. I'm guessing this feature was added after the previous answer.
5
Nice! In conjunction with jQuery:monitorEvents($('#element').get())
– Klaus
Feb 18 '16 at 14:44
1
To stop monitoring useunmonitorEvents(window)
– Augustas
Jun 17 at 12:49
add a comment |
Regarding Chrome, checkout the monitorEvents() via the command line API.
- Open the console via Menu > Tools > JavaScript Console.
- Enter
monitorEvents(window);
View the console flooded with events
...
mousemove MouseEvent dataTransfer: ...
mouseout MouseEvent dataTransfer: ...
mouseover MouseEvent dataTransfer: ...
change Event clipboardData: ...
...
There are other examples in the documentation. I'm guessing this feature was added after the previous answer.
Regarding Chrome, checkout the monitorEvents() via the command line API.
- Open the console via Menu > Tools > JavaScript Console.
- Enter
monitorEvents(window);
View the console flooded with events
...
mousemove MouseEvent dataTransfer: ...
mouseout MouseEvent dataTransfer: ...
mouseover MouseEvent dataTransfer: ...
change Event clipboardData: ...
...
There are other examples in the documentation. I'm guessing this feature was added after the previous answer.
answered Nov 5 '13 at 16:18
AnonymousAndrewAnonymousAndrew
6615 silver badges2 bronze badges
6615 silver badges2 bronze badges
5
Nice! In conjunction with jQuery:monitorEvents($('#element').get())
– Klaus
Feb 18 '16 at 14:44
1
To stop monitoring useunmonitorEvents(window)
– Augustas
Jun 17 at 12:49
add a comment |
5
Nice! In conjunction with jQuery:monitorEvents($('#element').get())
– Klaus
Feb 18 '16 at 14:44
1
To stop monitoring useunmonitorEvents(window)
– Augustas
Jun 17 at 12:49
5
5
Nice! In conjunction with jQuery:
monitorEvents($('#element').get())
– Klaus
Feb 18 '16 at 14:44
Nice! In conjunction with jQuery:
monitorEvents($('#element').get())
– Klaus
Feb 18 '16 at 14:44
1
1
To stop monitoring use
unmonitorEvents(window)
– Augustas
Jun 17 at 12:49
To stop monitoring use
unmonitorEvents(window)
– Augustas
Jun 17 at 12:49
add a comment |
You can use getEventListeners in your Google Chrome developer console.
getEventListeners(object) returns the event listeners registered on
the specified object.
getEventListeners(document.querySelector('option[value=Closed]'));
add a comment |
You can use getEventListeners in your Google Chrome developer console.
getEventListeners(object) returns the event listeners registered on
the specified object.
getEventListeners(document.querySelector('option[value=Closed]'));
add a comment |
You can use getEventListeners in your Google Chrome developer console.
getEventListeners(object) returns the event listeners registered on
the specified object.
getEventListeners(document.querySelector('option[value=Closed]'));
You can use getEventListeners in your Google Chrome developer console.
getEventListeners(object) returns the event listeners registered on
the specified object.
getEventListeners(document.querySelector('option[value=Closed]'));
answered Aug 28 at 1:54
JSON C11JSON C11
5,2954 gold badges48 silver badges46 bronze badges
5,2954 gold badges48 silver badges46 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f3787555%2fhow-to-find-out-which-javascript-events-fired%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
This question lists more tools: stackoverflow.com/questions/570960/…
– Željko Filipin
Sep 24 '10 at 14:11
2
Visual Event, sprymedia.co.uk/article/Visual+Event . I am sure that that will help half of the people landing on this stackoverflow page :)
– Cedric
Jul 25 '12 at 1:40