document.getElementById("ELEMENT_ID").addEventListener("click", function() { //insert here the code to be executed });