title: How to stop onkeyup event being fired when an alert box is cleared with the enter key
body: <p>Here's my problem...</p>
  
  <p>I have a text field which uses the javascript onkeyup event to do some "quiet" validation with a tick or cross if the value is valid.</p>
  
  <p>When the enter key is pressed, it does the same validation, but with an alert box advising of any problems.  If the enter key is used to clear the alert box, this press of the enter key refires the onkeyup event, which restarts the validation and the alert boxes again.</p>
  
  <p>As soon as I click the OK in the alert box, this naturally stops.</p>
  
  <p>Is there any way I can detect that the enter press was from the alert box?</p>
  
  <p>This definitely happens in opera, safari and firefox.</p>