Top "Javascript-events" questions

DO NOT USE THIS TAG!

How can I trigger an onchange event manually?

I'm setting a date-time textfield value via a calendar widget. Obviously, the calendar widget does something like this : document.getElementById(…

javascript javascript-events event-handling
Using jQuery to test if an input has focus

On the front page of a site I am building, several <div>s use the CSS :hover pseudo-class …

javascript jquery javascript-events jquery-on
Open popup and refresh parent page on close popup

I opened a popup window by window.open in JavaScript, i want to refresh parent page when I close this …

javascript html javascript-events
How to trigger jQuery change event in code

I have a change event that is working fine but I need to get it to recurse. So I have …

javascript jquery javascript-events
Check if event exists on element

Is there a way to check if an event exists in jQuery? I’m working on a plugin that uses …

javascript jquery javascript-events event-triggers
Disable F5 and browser refresh using JavaScript

I want to disable browser refreshing using JavaScript. Currently, I am using window.onbeforeunload and I don't want it to …

javascript javascript-events
How to debug JavaScript / jQuery event bindings with Firebug or similar tools?

I need to debug a web application that uses jQuery to do some fairly complex and messy DOM manipulation. At …

javascript jquery javascript-events event-handling firebug
Can I find events bound on an element with jQuery?

I bind two event handlers on this link: <a href='#' id='elm'>Show Alert</a&…

javascript jquery javascript-events
How to remove all listeners in an element?

I have a button, and I added some eventlistners to it: document.getElementById("btn").addEventListener("click", funcA, false); document.getElementById("…

javascript javascript-events addeventlistener