Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 15th, 2005, 01:27 AM
Registered User
Join Date: Jan 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Populate a opener listbox from pop up window


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?

Old January 15th, 2005, 06:13 AM
joefawcett's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts

Please don't post identical questions in similar forums.
Answer given at http://p2p.wrox.com/topic.asp?TOPIC_ID=24907


Joe (Microsoft MVP - XML)

Similar Threads
Thread Thread Starter Forum Replies Last Post
window.opener for mozilla jun99 Javascript 3 September 1st, 2009 08:57 AM
adding new listbox object to window opener Vash Javascript 3 October 10th, 2006 02:02 PM
Problem accessing the window.opener.opener maryuob Javascript 3 January 18th, 2006 05:25 AM
Open a pop-up window on selcetion chang in Listbox bpgadhia ASP.NET 1.x and 2.0 Application Design 1 May 10th, 2004 02:57 PM
window.opener help fs22 Javascript How-To 6 May 9th, 2004 10:50 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.