Sending variables from parent to child with window.open

Sending variables from parent to child with window.open

Hello, have been trying to send data entered in a text box on the parent page to get displayed on the child pop up page and have been so far unsuccessful.

Parent page code:

  1. function checkDropdowns() {
  2. var namedummy= $("#name").val();
  3. var addressdummy= $("#address").val();
  4. popUpWindow= window.open("proposal_form.html?namedummy=" + namedummy + "&addressdummy=" + addressdummy, "toolbar=yes");
  5. };

Child page code:

  1. $(document).ready(function() {
  2. var namedummy= getElementById("namedummy");
  3. var addressdummy= $.query.get("addressdummy");
  4. $('#NAME').text(namedummy);
  5. $('#ADDRESS').text(addressdummy);
  6. });

All I manage to get is the variables displayed on the child page url...

Thanks! x