<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 6.00.2800.1126" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=507544413-27112002>Hi 
</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=507544413-27112002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=507544413-27112002>You 
will define the variable the same way you declare an other 
variable</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=507544413-27112002>var 
myVariable = 'myValue';</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=507544413-27112002>To 
access it will need to references the frame where you did declare the variable 
</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=507544413-27112002>you 
said you have 3 frames named(examples) frame1, frame2, 
frame3</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=507544413-27112002>let 
say you declare the variable in frame1</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=507544413-27112002>if you 
want to access the variable in the&nbsp;frame one you do : 
&nbsp;document.frame1.myVariable</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=507544413-27112002>if you 
are in a&nbsp;other frame you do exactly the same 
document.frame1.myVariable</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=507544413-27112002>and 
this will give you the value of the variable if you want to change it you do : 
document.frame1.myVariable = 'newValue';</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=507544413-27112002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=507544413-27112002>hope 
this help? </SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=507544413-27112002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=507544413-27112002>Laurent</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=507544413-27112002></SPAN></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Girish Chawla 
  [mailto:cgirish@pal-it.com]<BR><B>Sent:</B> 27 November 2002 
  13:44<BR><B>To:</B> javascript@LaTech.edu<BR><B>Subject:</B> [Javascript] 
  global variables in frames<BR><BR></FONT></DIV>
  <DIV><FONT face=Arial size=2>Hi,<BR><BR>I have a window with 3 frames. <BR>I 
  want to access a global variable "xyz"&nbsp; from all the<BR>frame and I want 
  to change the value from any frame.<BR><BR>How do I define this 
  variable?<BR>thanks in 
advance..<BR>G<BR><BR></FONT></DIV></BLOCKQUOTE></BODY></HTML>
<BR>
<BR>

<P><B><FONT SIZE=2 FACE="Arial">DISCLAIMER - The preceding e-mail message (including any attachments) contains information that may be confidential, may be protected by the attorney-client or other applicable privileges, or may constitute non-public information.  It is intended to be conveyed only to the designated recipient(s) named above.  If you are not an intended recipient of this message, or have otherwise received it in error, please notify the sender by replying to this message and then delete all copies of it from your computer system.  Any use, dissemination, distribution, or reproduction of this message by unintended recipients is not authorized and may be unlawful. The contents of this communication do not necessarily represent the views of this company.</FONT></B></P>