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.

window.onload vs document.onload

Which is more widely supported: window.onload or document.onload?

javascript event-handling dom-events
How to make JavaScript execute after page load?

I'm executing an external script, using a <script> inside <head>. Now since the script executes before …

javascript html dom dom-events pageload
jQuery.click() vs onClick

I have a huge jQuery application, and I'm using the below two methods for click events. First method HTML <…

javascript html jquery dom-events jquery-events
Getting the ID of the element that fired an event

Is there any way to get the ID of the element that fires an event? I'm thinking something like: Except …

javascript jquery dom-events
Prevent form submission on Enter key press

I have a form with two text boxes, one select drop down and one radio button. When the enter key …

javascript forms keypress dom-events enter
Wait 5 seconds before executing next line

This function below doesn’t work like I want it to; being a JS novice I can’t figure out …

javascript dom-events
Stop setInterval call in JavaScript

I am using setInterval(fname, 10000); to call a function every 10 seconds in JavaScript. Is it possible to stop calling it …

javascript dom-events setinterval
window.onload vs $(document).ready()

What are the differences between JavaScript's window.onload and jQuery's $(document).ready() method?

javascript jquery dom-events unobtrusive-javascript
event.preventDefault() vs. return false

When I want to prevent other event handlers from executing after a certain event is fired, I can use one …

javascript jquery event-handling dom-events event-propagation
How to trigger event in JavaScript?

I have attached an event to a text box using addEventListener. It works fine. My problem arose when I wanted …

javascript events triggers addeventlistener dom-events