Answers for "detect click on buttons and do something to button clicked in html"

6

how to detect a button click in javascript

if(document.getElementById('button').clicked == true)
{
   alert("button was clicked");
}
Posted by: Guest on December-10-2019

Code answers related to "detect click on buttons and do something to button clicked in html"

Code answers related to "Javascript"

Browse Popular Code Answers by Language