title: Enter key press behaves like a Tab in Javascript
body: <p>I'm looking to create a form where pressing the enter key causes focus to go to the "next" form element on the page. The solution I keep finding on the web is...</p>
  
  <pre><code> &lt;body onkeydown="if(event.keyCode==13){event.keyCode=9; return event.keyCode}"&gt;
  </code></pre>
  
  <p>Unfortunately, that only seems to work in IE. So the real meat of this question is if anybody knows of a solution that works for FF and Chrome? Additionally, I'd rather not have to add <em>onkeydown</em> events to the form elements themselves, but if that's the only way, it will have to do.</p>
  
  <p>This issue is similar to <a href="https://stackoverflow.com/questions/905222/javascriptenter-key-press-event">question 905222</a>, but deserving of it's own question in my opinion.</p>
  
  <p>Edit: also, I've seen people bring up the issue that this isn't good style, as it diverges from form behavior that users are used to. I agree! It's a client request :(</p>