Populate a opener listbox from pop up window
Hi,
Can anyone help me:
- My main window has an empty listbox. Also this main window has a link to pop up a new window(Like in yahoo, when do you want to try to inserting an address from address box).
This popup window will populate the value of the listbox in main window.
The code to populate the listbox is:
This code is in Popup window
....
this.opener.document.mainForm.myListBox.option[this.opener.document.mainForm.myListBox.length] =
new Option("NEW VALUE", "NEW NAME", false, false)
....
But The browser IE return error.
Does anyone know why and help me?
|