Top "Events" questions

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

What's the difference between event.stopPropagation and event.preventDefault?

They seem to be doing the same thing... Is one modern and one old? Or are they supported by different …

javascript events preventdefault stoppropagation
How to stop event propagation with inline onclick attribute?

Consider the following: <div onclick="alert('you clicked the header')" class="header"> <span onclick="alert('you clicked …

javascript html events dom
AngularJs event to call after content is loaded

I have a function which I want to call after page content is loaded. I read about $viewContentLoaded and it …

angularjs events loaded
jQuery same click event for multiple elements

Is there any way to execute same code for different elements on the page? $('.class1').click(function() { some_…

jquery events
How to trigger the window resize event in JavaScript?

I have registered a trigger on window resize. I want to know how I can trigger the event to be …

javascript jquery events
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
How to remove all event handlers from an event

To create a new event handler on a control you can do this c.Click += new EventHandler(mainFormButton_Click); or …

c# .net winforms events
jQuery find events handlers registered with an object

I need to find which event handlers are registered over an object. For example: $("#el").click(function() {...}); $("#el").mouseover(function() {...}); $("#…

jquery events dom
How to capture the browser window close event?

I want to capture the browser window/tab close event. I have tried the following with jQuery: jQuery(window).bind( "…

javascript jquery events browser