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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.