Top "Dom-events" questions

DOM (Document Object Model) events allow event-driven programming languages to register various event handlers/listeners on the element nodes inside a DOM tree.

JavaScript global event mechanism

I would like to catch every undefined function error thrown. Is there a global error handling facility in JavaScript? The …

javascript dom-events
Detect Click into Iframe using JavaScript

I understand that it is not possible to tell what the user is doing inside an iframe if it is …

javascript iframe ads dom-events click-tracking
How to check whether dynamically attached event listener exists or not?

Here is my problem: is it possible somehow to check for existence of dynamically attached event listener? Or how can …

javascript testing addeventlistener dom-events
iFrame onload JavaScript event

I have an iFrame, where I want to send a JavaScript command after loading. My current code looks like this: &…

javascript iframe dom-events onload onload-event
Event when window.location.href changes

I'm writing a Greasemonkey script for a site which at some point modifies location.href. How can I get an …

javascript dom greasemonkey dom-events
Firing a Keyboard Event in Safari, using JavaScript

I'm trying to simulate a keyboard event in Safari using JavaScript. I have tried this: var event = document.createEvent("KeyboardEvent"); …

javascript safari webkit dom-events keyboard-events
How do I clear this setInterval inside a function?

Normally, I’d set the interval to a variable and then clear it like var the_int = setInterval(); clearInterval(the_…

javascript settimeout dom-events
How to trigger checkbox click event even if it's checked through Javascript code?

I have many checkboxes in my page and there is a select all checkbox which checks all the checkboxes. Somehow …

javascript jquery checkbox dom-events
Get value of multiselect box using jQuery or pure JS

In the code shown below, how to get the values of multiselect box in function val() using jQuery or pure …

javascript jquery jquery-selectors jquery-validate dom-events
Detect if HTML5 Video element is playing

I've looked through a couple of questions to find out if an HTML5 element is playing, but can't find the …

javascript html video html5-video dom-events