Top "Javascript-events" questions

DO NOT USE THIS TAG!

How to find out the actual event.target of touchmove javascript event?

I am trying to develop a simple drag/drop UI in my web application. An item can be dragged by …

javascript javascript-events
element.onload vs element.addEventListener("load",callbak,false)

What's the difference between addEventListener and onclick? var h = document.getElementById("a"); h.onclick = dothing1; h.addEventListener("click", dothing2); The …

javascript javascript-events onload-event
Catch scrolling event on overflow:hidden element

Any insights on how to catch a scrolling event on a element that has overflow:hidden? I would like to …

javascript jquery javascript-events
Capture a div as an image

I have some div tags containing charts rendered by javascript. I want to export them in an image format by …

javascript html javascript-events image-capture
Creating an element that can remove it self?

I'm building a lightbox as a school project, and I can't use jQuery. I've got an image. When you click …

javascript javascript-events onclick lightbox removechild
triggerHandler vs. trigger in jQuery

Out of curiosity -- what is the purpose of / use cases for jQuery's triggerHandler? As far as I can tell, …

jquery events javascript-events jquery-trigger jquery-triggerhandler
How do I create a custom event class in Javascript?

How do I create a custom event class similar to ActionScript? What I mean by that is a class that …

javascript actionscript-3 events javascript-events event-handling
Server-Sent Events vs Polling

Is there a big difference (in terms of performance, browser implementation availability, server load etc) between HTML5 SSEs and straight …

html javascript-events server-side server-sent-events ajax-polling