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 do I make an HTML button not reload the page

I have a button (<input type="submit">). When it is clicked the page reloads. Since I have some …

html button dom-events
How do you Hover in ReactJS? - onMouseLeave not registered during fast hover over

How can you achieve either a hover event or active event in ReactJS when you do inline styling? I've found …

javascript css reactjs mouseevent dom-events
Call a Javascript function every 5 seconds continuously

Possible Duplicate: Calling a function every 60 seconds I want to Call a Javascript function every 5 seconds continuously. I have seen …

javascript dom-events
How to simulate a mouse click using JavaScript?

I know about the document.form.button.click() method. However, I'd like to know how to simulate the onclick event. …

javascript dom-events mouseclick-event
Stop mouse event propagation

What is the easiest way to stop mouse events propagation in Angular ? Should I pass special $event object and call …

angular dom-events event-propagation
How can I programmatically invoke an onclick() event from a anchor tag while keeping the ‘this’ reference in the onclick function?

The following doesn't work... (at least not in Firefox: document.getElementById('linkid').click() is not a function) <script type="…

javascript dom-events
How to find out what character key is pressed?

I would like to find out what character key is pressed in a cross-browser compatible way in pure Javascript.

javascript dom-events keypress
How to get the mouse position without events (without moving the mouse)?

Is it possible to get the mouse position with JavaScript after page loads without any mouse movement event (without moving …

javascript mouseevent dom-events
JavaScript: SyntaxError: missing ) after argument list

I am getting the error: SyntaxError: missing ) after argument list With this javascript: var nav = document.getElementsByClassName('nav-coll'); for (var …

javascript syntax-error dom-events
How to pass an event object to a function in Javascript?

<button type="button" value="click me" onclick="check_me();" /> function check_me() { //event.preventDefault(); var hello = document.myForm.…

javascript dom-events