.addEventListener () Método - Tutorial Evento # 1


Post a Comment:





Showing 0 Comments:
Be the first to comment!

External ressources related to .addEventListener() method - Event Tutorial #1

EventTarget.addEventListener() - Web APIs | MDN
https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener

The EventTarget method addEventListener() sets up a function that will be called whenever the specified event is delivered to the target. Common targets are Element, Document, and Window, but the target may be any object that supports events (such as XMLH

JavaScript onclick event - Tutorials List - Javatpoint
https://www.javatpoint.com/javascript-onclick-event

Example3 - Using addEventListener() method. In this example, we are using JavaScript's addEventListener() method to attach a click event to the paragraph element. When the user clicks the paragraph element, the text of the paragraph gets changed.

HTML DOM addEventListener() Method - W3Schools
https://www.w3schools.com/jsref/met_document_addeventlistener.asp

Note: The addEventListener() method is not supported in Internet Explorer 8 and earlier versions, and Opera 6.0 and earlier versions. However, for these specific browser versions, you can use the attachEvent() method to attach event handlers (see "Mo