Pedro
0
Q:

how to detect a button click in javascript

if(document.getElementById('button').clicked == true)
{
   alert("button was clicked");
}
4
<input id="button" type="submit" name="button" value="enter"/>
-2

New to Communities?

Join the community