One more possibility if you could use frames is storing the variable at
frameset level.
"Majid" <majid@i...> wrote in message news:272341@j..._howto...
>
> If the variable stores an instance of an object, then AFAIK the instance
is
> destroyed after the rendering of the page. However, in ASP you can store
the
> object instance in a session variable.
>
> Values of other variables can persist using cookies or sending the values
> back and forth through GET or POST methods i.e. by appending them to the
URL
> or storing them in the hidden form fields and then submitting the form
when
> you reload the page.
>
> Majid
>
>
>
> ----- Original Message -----
> From: "ramy m" <ramymoneiry@y...>
> To: "JavaScript HowTo" <javascript_howto@p...>
> Sent: Tuesday, March 18, 2003 6:58 PM
> Subject: [javascript_howto] variable value
>
>
> > hi all
> >
> > is there any way to keep the value of the variable after relaod the
page
> >
> > I am using the following code to refresh the page
> > window.location.reload (true) ;
> >
> > but I want to keep the value of an instance variable but I can not ???
> >
> >
> > thanks
>
>
>