Is there a simple way to do something along these lines:
JavaScript:
if(document.getElementById('button').clicked == true)
{
alert("button was clicked");
}
HTML:
<input id="button" type="submit" name="button" value="enter"/>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…