About 11,400,000 results
Open links in new tab
  1. JavaScript: What is addEventListener? - Stack Overflow

    Apr 23, 2010 · The addEventListener method is the W3C standard method to attach an event handler to an element, so that you can do something useful when an event is triggered. The …

  2. javascript - Correct usage of addEventListener () / attachEvent ...

    The difference being is that attachEvent can only be used on older rendering engines ( IE5+ IE5-8*) and addEventListener is a W3 standard that is implemented in the majority of other …

  3. javascript - addEventListener vs onclick - Stack Overflow

    This Stack Overflow page discusses the differences between addEventListener and onclick in JavaScript.

  4. How to pass arguments to addEventListener listener function?

    Nov 2, 2008 · Learn how to pass arguments to addEventListener listener functions effectively in JavaScript with this guide.

  5. How to pass parameter to function using in addEventListener?

    Aug 19, 2012 · In a function invoked by addEventListener the value for this will automatically be set to the object the listener is attached to, productLineSelect in this case.

  6. adding multiple event listeners to one element - Stack Overflow

    So my dilemma is that I don't want to write the same code twice. Once for the click event and another for the touchstart event. Here is the original code: document.getElementById('first').

  7. javascript - Difference between document.addEventListener and …

    While using PhoneGap, it has some default JavaScript code that uses document.addEventListener, but I have my own code which uses window.addEventListener: …

  8. The value of "this" within the handler using addEventListener

    Aug 27, 2009 · The main difference here is, inside the function, this will refer to the object passed to the addEventListener. That is, this.theTicketTable will be the object instance in the belowCode.

  9. javascript - How to use addEventListener - Stack Overflow

    Dec 7, 2012 · 9 I was making a script that creates div elements each time a button is pressed. Originally I had the function called inline with the onclick attribute, but jslint doesn't like that so …

  10. addEventListener, "change" and option selection - Stack Overflow

    addEventListener("select", addActivityItem, false); The problem is that various events don't fire when you have one item: not "change" because, the text is no different when you select that …