check whether button is clicked or not js code example
Example: how to check if the button is clicked or not in javascript
if(document.getElementbyId("id do item").clicked == true){
window.alert("ok")
}
if(document.getElementbyId("id do item").clicked == true){
window.alert("ok")
}