Jump to content

passing values between window and opner page


isaac_cm

Recommended Posts

hello

I am trying to pass string to a text box from a popup window to opener page and I tried to add onclose event but it did not work

 

so I tried to use unload event and pass the value in calling this function:

 

function close(){

  var tf1 = opener.document.getElementById('tf_small_img[]');

  tf1.value = "any text here";

}

 

it work but I have an array of text boxes 'tf_small_img[]' how I send the text to specific one ?

 

Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.