Top "Event-handling" questions

Event handling is a coding style about handling messages between a source and one or more subscribers.

window.onload vs document.onload

Which is more widely supported: window.onload or document.onload?

javascript event-handling dom-events
jQuery checkbox change and click event

Here .change() updates the textbox value with the checkbox status. I use .click() to confirm the action on uncheck. If …

javascript jquery checkbox event-handling
jQuery checkbox checked state changed event

I want an event to fire client side when a checkbox is checked / unchecked: $('.checkbox').click(function() { if ($(this).…

javascript jquery event-handling
event.preventDefault() vs. return false

When I want to prevent other event handlers from executing after a certain event is fired, I can use one …

javascript jquery event-handling dom-events event-propagation
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
jQuery equivalent of JavaScript's addEventListener method

I'm trying to find the jQuery equivalent of this JavaScript method call: document.addEventListener('click', select_element, true); I've gotten …

javascript jquery events event-handling dom-events
Understanding events and event handlers in C#

I understand the purpose of events, especially within the context of creating user interfaces. I think this is the prototype …

c# .net events event-handling
UITextField text change event

How can I detect any text changes in a textField? The delegate method shouldChangeCharactersInRange works for something, but it did …

ios objective-c swift event-handling uitextfielddelegate
How can I capture the right-click event in JavaScript?

I want to block the standard context menus, and handle the right-click event manually. How is this done?

javascript html events event-handling dom-events
jQuery - Detect value change on hidden input field

I have a hidden text field whose value gets updated via an AJAX response. <input type="hidden" value="" name="…

jquery event-handling field onchange hidden