Estoy ansioso por ver si hay una manera simple de hacer algo en este sentido:Cómo comprobar si un botón se hace clic mediante el uso de JavaScript
javascript:
if(document.getElementById('button').clicked == true)
{
alert("button was clicked");
}
html:
<input id="button" type="submit" name="button" value="enter"/>
Por favor, no use los manipuladores en línea, [hay tantos razones para no hacer esto] (http://stackoverflow.com/questions/2479557/why-is-it-bad-practice-to-use-links-with-the-javascript-protocol/2479582#2479582). –