validate whether button is clicked in javascript 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")
}