Top "Events" questions

An event is a way for a class to provide notifications to listeners when a particular thing happens.

JavaScript: remove event listener

I'm trying to remove an event listener inside of a listener definition: canvas.addEventListener('click', function(event) { click++; if(click == 50) { // …

javascript events event-handling listener
How to have click event ONLY fire on parent DIV, not children?

I have a DIV with a classed foobar, and a few DIVs inside that DIV that are unclassed, but I …

jquery events onclick
event.preventDefault() function not working in IE

Following is my JavaScript (mootools) code: $('orderNowForm').addEvent('submit', function (event) { event.preventDefault(); allFilled = false; $$(".required").each(function (inp) { if (…

javascript internet-explorer events mootools preventdefault
How do I add a .click() event to an image?

I have a script that places an image based on a mouse click thanks to Jose Faeti. Now I need …

javascript events mouseevent
How do I detect a page refresh using jquery?

How might I capture the page reload event? I have a messaging system which loses all its input when the …

jquery events refresh reload
jQuery: get the file name selected from <input type="file" />

This code should work in IE (don't even test it in Firefox), but it doesn't. What I want is to …

jquery events copy file-io
How to capture the "virtual keyboard show/hide" event in Android?

I would like to alter the layout based on whether the virtual keyboard is shown or not. I've searched the …

android events android-softkeyboard
Watch multiple $scope attributes

Is there a way to subscribe to events on multiple objects using $watch E.g. $scope.$watch('item1, item2', …

javascript angularjs events angularjs-watch
What is the use of "object sender" and "EventArgs e" parameters?

In case of Page_Load, Init and other page events, what is the use of these (object sender, EventArgs e) …

c# asp.net events sender eventargs
.NET Events - What are object sender & EventArgs e?

What do sender and eventArgs mean/refer to? How can I make use of them (for the scenario below)? Scenario: …

.net events event-handling