Displaying the Navigator's Associative Array : Object Property « Development « JavaScript DHTML






Displaying the Navigator's Associative Array

<HTML>
<HEAD>
<TITLE>Associative object arrays</TITLE>
<SCRIPT> 
function showProperties (theObject){ 
   for (i in theObject) { 
      if (theObject[i] != null) { 
          document.write(i + " : " + theObject[i] + "<br>"); 
      } else { 
         document.write(i + "<br>"); 
      } 
   } 
   return; 
} 
</SCRIPT>
</HEAD>
<BODY>
<SCRIPT> 
showProperties(window.navigator); 
// showProperties(window.document); 
</SCRIPT>
</HTML>
           
       








Related examples in the same category

1.Property Inspector Function