const image = document.getElementById('yourImage'); image.addEventListener("click", (event) => { // Do stuff with your event! });