title: Better way to pass many form input values from child to parent window
body: <p>I have a child window which has a bunch of radio buttons. I would want to send all these many values to the opener window. </p>
  
  <p>I am achieving this by appending all the input names and values to a javascript string. I am then using <code>window.opener</code> property to assign string to hidden field in parent window.</p>
  
  <p>Code is like,</p>
  
  <pre><code>document.getElementById("Errnodata").innerHTML = "" ;  
  var joinedArray = literal.join(", ");
  window.opener.document.getElementById("myarray").value= joinedArray;
  window.opener.getVolunteerDetails();
  window.close();
  </code></pre>
  
  <p>So this means <code>joinedArray</code> string has form like <code>name1,value1,name2,value</code>. And is there any better way to pass many values to the parent window? Or any idiomatic/accepted way? </p>
  
  <p>Thanks.</p>