title: Overriding shortcut keys in Firefox and Chrome
body: <p>I have a script that is supposed to open a section of a web page, and save changes on Ctrl + n and Ctrl + s respectively.  I got it working in IE, but it doesn't seem to work in Firefox and Chrome. Any ideas?</p>
  <p>My override function.</p>
  <pre><code>function prevent(e)
  {
  try{e.stopPropagation();}catch(ex){}
  try{e.preventDefault()}catch(ex){}
  try{if (e.preventDefault)
          e.preventDefault();
      else {
          e.cancelBubble = true;
          e.returnValue = false;
          e.keyCode = 0;
      }}  catch(ex){}
  }
  </code></pre>