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 to distinguish mouse "click" and "drag"

I use jQuery.click to handle the mouse click event on Raphael graph, meanwhile, I need to handle mouse drag …

javascript dom-events
How to set cursor to input box in Javascript?

document.getElementById(frmObj.id).value=""; document.getElementById(frmObj.id).autofocus; document.getElementById("errorMsg").innerHTML = "Only numeric value is allowed"; In …

javascript dom-events
window.location.href doesn't redirect

I know this is a question much discussed but I can't figure out why it does not work for me. …

javascript dom-events window.location
Get ID of element that called a function

How can I get the ID of an element that called a JS function? body.jpg is an image of …

javascript events dom-events
HTML input file selection event not firing upon selecting the same file

Is there any chance to detect every file selection the user made for an HTML input of type file element? …

javascript html forms dom-events
Enter key press behaves like a Tab in Javascript

I'm looking to create a form where pressing the enter key causes focus to go to the "next" form element …

javascript html cross-browser dom-events
document.body.appendChild(i)

I am getting error only in IE7 as document.body is null; when I debug with Microsoft script editor I …

javascript internet-explorer-7 dom-events
Prevent onmouseout when hovering child element of the parent absolute div WITHOUT jQuery

I am having trouble with the onmouseout function in an absolute positoned div. When the mouse hits a child element …

javascript css dom-events onmouseout
Checkbox Check Event Listener

Recently I have been working with the Chrome Plugin API and I am looking to develop a plugin which will …

javascript html google-chrome google-chrome-extension dom-events
Automatically pass $event with ng-click?

I know that I can get access to the click event from ng-click if I pass in the $event object …

javascript angularjs angularjs-directive dom-events angularjs-ng-click