Top "Javascript-events" questions

DO NOT USE THIS TAG!

addEventListener on form submit

This is what I have and it's not working. document.getElementById('form1').addEventListener('submit', function(){ document.getElementById('donate').style.…

javascript javascript-events
Prevent firing focus event when clicking on div

This question is similar to my previous question, Click action on Focused DIV, but this time the main topic is, …

javascript jquery javascript-events
JavaScript mapping touch events to mouse events

I'm using the YUI slider that operates with mouse move events. I want to make it respond to touchmove events (…

javascript javascript-events touchscreen
How can I get jquery .val() AFTER keypress event?

I got: $(someTextInputField).keypress(function() { alert($(this).val()); }); Now the alert always returns the value BEFORE the keypress (e.g. …

javascript jquery events forms javascript-events
Handling "onclick" event with pure JavaScript

So this is really straight forward but I'm still fairly new to JavaScript and just found JSFiddle. I'm trying to …

javascript html events javascript-events event-handling
Detect Enter key is pressed with jquery

I have a text field which is showing a value. What I want is when the user writes a new …

ajax jquery javascript-events
Ignore mouse interaction on overlay image

I have a menu bar with hover effects, and now I want to place a transparent image with a circle …

javascript html css xhtml javascript-events
Using jQuery to trigger html onclick event

<input type="text" id="test_value" name="test_value" value="xyz" /> <input id="test_default" name="test_…

javascript jquery javascript-events
jQuery change event on <select> not firing in IE

I've got a page with a variable number of <select> elements (which explains why I'm using event delegation …

javascript jquery javascript-events internet-explorer
Can multiple event listeners/handlers be added to the same element using javascript?

I have: if (window.addEventListener) { window.addEventListener('load',videoPlayer,false); } else if (window.attachEvent) { window.attachEvent('onload',videoPlayer); } and then …

javascript javascript-events