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.

How can I trigger a JavaScript event click

I have a hyperlink in my page. I am trying to automate a number of clicks on the hyperlink for …

javascript dom-events
Is it possible to simulate key press events programmatically?

Is it possible to simulate key press events programmatically in JavaScript?

javascript dom-events
How to get scrollbar position with Javascript?

I'm trying to detect the position of the browser's scrollbar with JavaScript to decide where in the page the current …

javascript browser scroll dom-events
Onclick javascript to make browser go back to previous page?

Is there a function I can attach as a click event of a button to make the browser go back …

javascript html browser onclick dom-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 display a confirmation dialog when clicking an <a> link?

I want this link to have a JavaScript dialog that asks the user “Are you sure? Y/N”. <a …

javascript html dom-events
What is event bubbling and capturing?

What is the difference between event bubbling and capturing? When should one use bubbling vs capturing?

javascript dom-events event-bubbling
On - window.location.hash - Change?

I am using Ajax and hash for navigation. Is there a way to check if the window.location.hash changed …

javascript ajax dom-events fragment-identifier hashchange
Is there an onSelect event or equivalent for HTML <select>?

I have an input form that lets me select from multiple options, and do something when the user changes the …

javascript html html-select dom-events
Listening for variable changes in JavaScript

Is it possible to have an event in JS that fires when the value of a certain variable changes? JQuery …

javascript jquery dom-events