title: JavaScript Array / Struct
body: <p>I would like to create a structure within javascript. I have a pair of informations, I would like to use, example:</p>
  
  <pre><code>array[1] = new Struct();
  array[1].name = "parameter-name";
  array[1].value = "parameter-value";
  
  array[2] = new Struct();
  array[2].name = "parameter-name2";
  array[2].value = "parameter-value2";
  </code></pre>
  
  <p>This can be on a diffrent page with diffrent values, maybe on element within my array, maybe 2-20..</p>
  
  <p>Later, within my generic javascript, I would like to parse the array and continue with my parameters, example:</p>
  
  <pre><code>for(i=1 to length_of_my_array) {
    _tag.array[i].name = array[i].value; 
  }
  </code></pre>
  
  <p>How can I realize this with pure javascript? Thanks for any hint!</p>