About 50 results
Open links in new tab
  1. javascript - addEventListener vs onclick - Stack Overflow

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

  2. How to find event listeners on a DOM node in JavaScript or in …

    Jan 15, 2009 · 1161 I have a page where some event listeners are attached to input boxes and select boxes. Is there a way to find out which event listeners are observing a particular DOM node and for …

  3. How to return value from addEventListener - Stack Overflow

    Nov 3, 2015 · I use Javascript to catch the x and y position for when user clicks a link. I can make it work, but I want it to return the two values to function init() when it is called. How can I do it? <scr...

  4. javascript - adding multiple event listeners to one element - Stack ...

    Semi-related, but this is for initializing one unique event listener specific per element. You can use the slider to show the values in realtime, or check the console.

  5. JavaScript click event listener on class - Stack Overflow

    Aug 9, 2016 · Add an event listener to the immediate parent class wrapping all the child elements with the same class and get the path by selecting the first key in the event object.

  6. How can I listen to the form submit event in javascript?

    192 I wanna write my own form validation javascript library and I've been looking on google how to detect if a submit button is clicked but all I found is code where you have to use onClick on …

  7. javascript - How to pass arguments to addEventListener listener ...

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

  8. Javascript: onchange or addEventListener? - Stack Overflow

    I am totally new to Javascript. But I learned a little about Activescript before. I was taught to use addEventListener to handle events. But when I come to JavaScript, although addEventListener is...

  9. javascript - Detect browser or tab closing - Stack Overflow

    Oct 8, 2010 · Is there any cross-browser JavaScript/jQuery code to detect if the browser or a browser tab is being closed, but not due to a link being clicked?

  10. javascript - add event listener on elements created dynamically - Stack ...

    Is possible to add event listener (Javascript) to all dynamically generated elements? I'm not the owner of the page, so I cannot add a listener in a static way. For all the elements created when the