title: JavaScript dot notation
body: <p>The following line is apparently written best in dot notation. I am trying to clean my JavaScript code to make it strict. What does it mean?  </p>
  
  <pre><code>if (ie||ns6)
  {
      var tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : "";
  }
  </code></pre>
  
  <p>I added some context to my line of code, in case this helps?
  I know nothing about <a href="http://en.wikipedia.org/wiki/Document_Object_Model" rel="noreferrer">DOM</a>. I am not trying to support Internet Explorer 4, this is not my code and I wouldn't be able to write JavaScript myself. I am only trying to get it compliant and the <a href="http://jslint.com/" rel="noreferrer">JSLint</a> tool says about this line:</p>
  
  <blockquote>
    <p>Problem at line 17 character 43: ['dhtmltooltip'] is better written in dot notation.</p>
  </blockquote>