Real global var

Results 1 to 2 of 2

Thread: Real global var

  1. #1
    Patrik Guest

    Default Real global var

    I&#039;m in desperate need of a global variable in JS.<BR>Anyone knows an easy way to do this.<BR>I would need to set the variable before i do a<BR>wondow.location.href=<BR>And the JScript at the new location does a frameset depending<BR>on the variable that has been set in the previous page.<BR>I dont wana use forms 4 this one :/<BR>The idea is to keep the URL cleen from URL submition strings.<BR>Do I make any sense at all ?<BR>Urgent PLZ help!!

  2. #2
    Join Date
    Dec 1969

    Default RE: Real global var

    Well, if you don&#039;t want to pass the value of the variable through URL or POST form, you could store it in a cookie and retrieve it from the same cookie in the next page (assuming that both pages are on the same site; otherwise cross-domain security will kick in).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts