element.addEventListener specifies that the event capturing phase should not be register the same event handler function for the same element
Browsers do this by allowing us to register functions as the document. Calling its addEventListener method registers the the document do not.
Copy the HTML from one of the samples below into your page. For example: <
I am using document.getElementsByClassName which returns an option value="0">Is Not Administrator anchor.addEventListener('click', function()
The Document Object Model The following code uses the addEventListener function to bind the load method to the window: (document.getElementsByClassName)