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 Link to comment https://forums.phpfreaks.com/topic/63463-passing-values-between-window-and-opner-page/ 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 Link to comment https://forums.phpfreaks.com/topic/63463-passing-values-between-window-and-opner-page/#findComment-316279 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.