I have a Javascript array of unknown length and I'd love to make some of its fields show up in my html page. I've tried to make a function in my js library to print them calling it directly through my html code
<body onload="parser()">
   <div id="list">
       <script> load_list() </script>
   </div>
</body>
the function parser() extract the infos from an xml file and put them in the array. The function load_list is the following
function load_list () {
     document.write ("<ul>");
     for (i=0; i< array.length; i++) {
         document.write ("<li><a href='javascript:change("+array[i].x+")'>");
         document.write (array[i].name);
         document.write ("</a></li>");
     }
}
 
     
     
    