EARID

My Notes

addEventListener()

The addEventListener() method attaches an event handler to the specified element. Syntax Parameter Description event Required. A String that specifies the name of the event. Note: Do not use the “on” prefix. For example, use “click” instead of “onclick”. For a list of all HTML DOM events, look at our complete HTML DOM Event Object […]

addEventListener() Read More »