[Javascript] windows
Matt Barton
javascript at mattbarton.org
Tue May 18 06:36:50 CDT 2004
If I understand your situation correctly then I think that you'll want a
function to be called on the onload event of the middle frames document.
The function should be able to reference the opening windows document (and
forms and elements therein) by using:
top.opener.document.
In this case "top" refers to the top window in the frames hierarchy, and
"opener", just like the previous example, refers to the window that
performed the original window.open.
Let me know if I haven't understood your scenario correctly.
Matt
----- Original Message -----
From: "Iztok Polanic" <iztokp at amis.net>
To: "[JavaScript List]" <javascript at LaTech.edu>
Sent: Tuesday, May 18, 2004 12:07 PM
Subject: Re: [Javascript] windows
> Hi!
>
> I've made some corrections to my HTML and the script stopped working
(which
> is quite logicall).
> It now goes like this:
>
> 1. User clicks on a link, which opens a html file with frames
> 2. The middle frame should send the same variable to opener (parent
window)
>
> What should I change?
>
> Bye,
>
> Iztok
> ----- Original Message -----
> From: "Matt Barton" <javascript at mattbarton.org>
> To: "[JavaScript List]" <javascript at LaTech.edu>
> Sent: Monday, May 17, 2004 3:19 PM
> Subject: Re: [Javascript] windows
>
>
> > From: "Iztok Polanic" <iztokp at amis.net>
> > Subject: [Javascript] windows
> >
> >
> > > parent.document.forms[0].elements[0].value = this;
> >
> >
> > Try:
> >
> > opener.document.forms[0].elements[0].value
> >
> > HTH
> >
> > Matt
> > _______________________________________________
> > Javascript mailing list
> > Javascript at LaTech.edu
> > https://lists.LaTech.edu/mailman/listinfo/javascript
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
> --
> This email has been verified as Virus free
> Virus Protection and more available at http://www.plus.net
More information about the Javascript
mailing list