title: Navigator Object in javascript. How to determine all properties
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/85992/how-do-i-enumerate-the-properties-of-a-javascript-object">How do I enumerate the properties of a javascript object?</a>  </p>
  </blockquote>
  
  
  
  <p>Good day!</p>
  
  <p>I want to determine all the properties of my navigator using javascript by doing this following code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      for(var property in navigator){ 
          str="navigator."+ property;   //HAVING A PROBLEM HERE...
          document.write(property+ "&amp;nbsp;&amp;nbsp;&lt;em&gt;"+ 
          str+"&lt;/em&gt;&lt;br /&gt;");
      } 
  &lt;/script&gt;
  </code></pre>
  
  <p>But the concatenation of my str variable prints as it is. What i need is the actual value of the property.</p>
  
  <p>eg. navigator.appCodeName should print mozilla instead of navigator.appCodeName itself.</p>
  
  <p>Thank you in advance.</p>