title: Trigger event on an alert box
body: <p>My question is: is there a way to target an element in the alert box, specifically the 'ok' button or which would stimulate the 'enter' key press. I have tried doing this code on the console without any success:</p>
  
  <pre><code>var e = $.Event("keydown", { keyCode: 13}); 
  $("alert").trigger(e);
  </code></pre>