Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

button disappears after click javascript

document.getElementById("myButton").addEventListener("click",function(){
	//Permenently destroy the button
    this.remove()
    //OR Hide the button
    this.style.display="none"
})
 
PREVIOUS NEXT
Tagged: #button #disappears #click #javascript
ADD COMMENT
Topic
Name
2+9 =