<!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.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>when you define a variable, define it as&nbsp;top 
object variable:</FONT></DIV>
<DIV><FONT face=Arial size=2>top.myVar = 0; // DON'T with "var" 
keyword</FONT></DIV>
<DIV><FONT face=Arial size=2>to access it from any frame, just use: 
top.myVar</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=cgirish@pal-it.com href="mailto:cgirish@pal-it.com">Girish Chawla</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=javascript@LaTech.edu 
  href="mailto:javascript@LaTech.edu">javascript@LaTech.edu</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, November 27, 2002 3:43 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [Javascript] global variables in 
  frames</DIV>
  <DIV><BR></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>