javascript forin 循环


javascript forin 循环

<html>
   <body>

      <script type = "text/javascript">
         <!--
            var aProperty;
            document.write("Navigator Object Properties<br /> ");

            for (aProperty in navigator) {
               document.write(aProperty);
               document.write("<br />");
            }
            document.write ("Exiting from the loop!");
         //-->
      </script>

      <p>Set the variable to different object and then try...</p>
   </body>
</html>