Forum Moderators: open

Message Too Old, No Replies

javascript question

can I pass a variable to another page?

         

stevenjm

2:19 am on Sep 18, 2003 (gmt 0)

10+ Year Member



Just a matter of interest really(not wanting to do anything in particular) Wondering if its possible to pass the value of a variable from a page containing javascript to another page containing javascript?

ie. hold the variable in memory and use its value on another script within the same site.

MonkeeSage

2:30 am on Sep 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In can't be done in-memory because that would be too much of a security risk, but it can be done via the
window.location
object. I posted a working example in msg #6 of this thread:
[webmasterworld.com...]

HTH
Jordan

stevenjm

2:55 am on Sep 18, 2003 (gmt 0)

10+ Year Member



Great. thanks for that.