update to another window

C

Cathy

Hi,

I am new to javascript and coldfusion. I have a original window, when
user click on a button, it will open another windowB; how can windowB
update information in the original window? Thanks.

Cathy
 
B

Benjamin

When you create a new window with JavaScript, scripts in the new window
gain a property called self.opener. This refrences the Window object of
the window that opened it. Thourgh that you can change anything in the
original window . For example if you had a div with an id of myDiv you
can access it from windowb like this:
self.opener.document.getElementById("myDvi")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,119
Latest member
IrmaNorcro
Top