Click to See Complete Forum and Search --> : contacting the starter window?


jon.sjodin
08-07-2003, 07:57 AM
Hi everybody,

Im currently working on a javascripted page that uses multiple windowses (ie, lotsof open(stuff)).
I whant from one of the opened window, refer to the starter window. And need some help.

if I do something like this on the starter window:
var myWin=open"theHTMLJSpage.html","QueryAns",params);

in theHTMLJSpage.html i write
alert(top.name);

I get the folowing aswer:
QueryAns

How do i from theHTMLJSpage.hmtl contact the starter page?

Does anyone know?
Regards,
-- Jon

Mr J
08-07-2003, 08:15 AM
Your "Starter" window is refered to as the "opener"

So if your starter window has a name it would be

alert(opener.name)

jon.sjodin
08-07-2003, 08:29 AM
Thanks alot!! That helped...