title: Javascript Browser compatibility
body: <p>Can anyone please let me know what attributes I should use instead of these (which I have used for Internet Explorer) to work in chrome or firefox:</p>
  
  <p>For changing visibility of an element:</p>
  
  <pre><code>obj.style.visibility = 'visible/hidden';
  </code></pre>
  
  <p>For getting the element:</p>
  
  <pre><code>document.getElementById("id");
  </code></pre>
  
  <p>For writing a string value into an element:</p>
  
  <pre><code>obj.innerHTML = "....";
  </code></pre>
  
  <p>To set or retrieve the left position of an object:</p>
  
  <pre><code>obj.style.posLeft/posTop = ...;
  </code></pre>
  
  <p>Or can anyone please suggest some article on browser compatibility?</p>