How can I get the computed click events from an HTML object in JavaScript. I need to call the functions that execute when I click an HTML object. Something like the following but getting the function calls directly
$("#htmlobject").click();
How can I get the computed click events from an HTML object in JavaScript. I need to call the functions that execute when I click an HTML object. Something like the following but getting the function calls directly
$("#htmlobject").click();
Your question is fairly poorly written to explain what you're looking for.
I'm guessing its this: "There are event handlers that 'someone' has put on an element, I would like to know what they are, and optionally be able to trigger them manually". That said, the answer is "no, unless you bound the event callback its not yours to mess around with".
Other Reasons/Stuffs:
Really though, even though you didn't write the page, if you have access to its source you can see what is being bound and where, you can see if they are using named callbacks or anonymous callbacks.
If the page is visible in the browser you can find it all, and as such I wonder what you mean by "I didn't make the page"
Also these documentations can be useful: http://jquery.com/upgrade-guide/1.9/#data-events- http://api.jquery.com/jQuery.data/#jQuery-data-element-key