title: How to write cross-browser javascript code
body: <p>In a web application, writing javascript is a common work, and I have tried to create cross-browser code.</p>
  
  <p>If I try my best to make it work in Firefox, then it does not work in IE.</p>
  
  <p>So  I wonder if there are any rules or experiences from you guys to tell me how to write   cross-browser code?</p>
  
  <blockquote>
    <p>UPDATE:</p>
  </blockquote>
  
  <p>Sorry I forget to make it sure that we can not use jquery in my current application since we are usng prototype1.4(which is to difficult to use than jquery),so most time we use the native javascript.</p>