isaac_cm Posted August 5, 2007 Share Posted August 5, 2007 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 Quote Link to comment Share on other sites More sharing options...
isaac_cm Posted August 5, 2007 Author Share Posted August 5, 2007 I just found th solution have to use it like this thanks to fenway: formref.elements["name[]"] I need to know now is there any other good solution ? thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.