From - Sat Jun 14 23:04:49 1997
Path: world1.bellatlantic.net!out2.nntp.cais.net!news2.cais.com!in1.nntp.cais.net!nntp.uio.no!newsfeeds.sol.net!europa.clark.net!newsfeed.gte.net!news
From: olmstj@phat-media.com (jason olmsted)
Newsgroups: comp.lang.javascript
Subject: Re: passing variables between frames
Date: 6 Jun 1997 00:02:41 GMT
Organization: GTE Intelligent Network Services, GTE INS
Lines: 26
Message-ID: <5n7k31$k58$2@news9.gte.net>
References: <33973433.55201698@news.hol.fr>
NNTP-Posting-Host: m5p240-227.ij.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Auth: 5A02DA98139104CB15180412
X-Newsreader: Forte Agent .99g/32.326

On Thu, 05 Jun 1997 21:48:47 GMT, yquem@hotmail.com (Suzan) wrote:

>I want to pass a variable from one frame to the next one. How is it
>possible with JS? Thank you.
>

not really a pass to, but a grab from.

if you have a function in frames[0] and need the value of an input box
in the frames[1], you could use somehting like this:

function myFunc() {
var myVar = top.frames[1].document.forms[0].myTextBox.value;
}

To grab a variable defined in frames[1] from frames[0], you might use
something like this:

var frames_0_Var = top.frames[1].frames_1_Var;

hopefull that'll give you an idea/good start, but I suggest further
reading on the browser window hierarchy for more info.

jason olmsted
olmstj@phat-media.com
http://www.phat-media.com/olm
