--- _db_id: 136 content_type: topic ready: true title: DOM events with vanilla JavaScript --- To see a basic demo of various event handlers take a look [here](https://github.com/Umuzi-org/demo-vanilla-dom-evens). This demo has three different `index.html` pages. Each of them attach event handlers to the different DOM elements in different ways. - https://gomakethings.com/listening-for-click-events-with-vanilla-javascript/ - https://gomakethings.com/why-event-delegation-is-a-better-way-to-listen-for-events-in-vanilla-js/ - https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Creating_and_triggering_events - https://www.khanacademy.org/computing/computer-programming/html-css-js/html-js-dom-events/v/making-webpages-interactive-with-events - https://developer.mozilla.org/en-US/docs/Web/Events#Standard_events