detect click on buttons and do something to button clicked in html code example
Example: how to detect a button click in javascript
if(document.getElementById('button').clicked == true)
{
alert("button was clicked");
}
if(document.getElementById('button').clicked == true)
{
alert("button was clicked");
}