document.getElementById("myButton").addEventListener("click",function(){ //Permenently destroy the button this.remove() //OR Hide the button this.style.display="none" })