How to modify text on first window from child of second window?

Giganews Newsgroups
Subject: How to modify text on first window from child of second window?
Posted by:  juangarc…@sacbeemail.com (Juan Garcia)
Date: 30 Jul 2003

Subject says it all.

Given:
Window A with text field.
Window B with a button (onClick opens Window C)
Window C with a button (onClick I want it to modify text fields of
Window A)

I have tried storing the handle of Window A ( var winHandle = this; )
in a global variable/file ( globals.js ) and then accessing it from
Window C ( winHandle.document.txt1.value = "blah";)  But I am having
problems with globals.  (Differnt problem and post all together.  But
I tell you this globals don't behave like they do in C.  And they are
pissing me off.)

Any help greatly appreciated.

jg

Replies