title: Prevent open downloads window in chrome with barcode reader
body: <p>i have this problem with my website (MVC3, C#) and a barcode reader.
  In my form i have something like this:</p>
  
  <pre><code>&lt;ajax form....&gt;
  
  &lt;input type=text /&gt;
  
  &lt;div id=list&gt;
  &lt;/div&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p>And the input is filled with a barcode reader and automatically submits the form that with ajax, fills the div with the id = list.
  My problem is that with chrome and ie, after the text is submited, a downloads windows appears in chrome and the favorites window appears in ie. I suppose that is because the barcode reader insers a [CR][LF] in the text and that opens those windows. I thought that the barcode reader was inserting a ctrl-j in some moment because that combination opens the downloads window in chrome and the favorites in ie, but with firefox the downloads window doesnt open (and is also ctrl-j).</p>
  
  <p>I dont want to tell my client to configure the barcode reader so my page works, so i want a sollution in javascript maybe that fixes that problem.</p>
  
  <p>thanks!!!</p>