...

View Full Version : passing javascript variable from one page to another



d2kagw
01-16-2003, 02:51 AM
Hey,

just wondering if it was posible to pass variables from one page to another?

if so, any pointers on how to do it?

thanks

- az

Skyzyx
01-16-2003, 04:00 AM
cookies

d2kagw
01-16-2003, 04:05 AM
ewwww,

theres no other way?

- az :eek:

mordred
01-16-2003, 08:44 AM
First page:

window.name = "Fnord";


Second page:

document.write(window.name); // <- prints "Fnord"


You could also append variables as a query string to the URL and read that with location.search, and extract the variables you need from that.

MCookie
01-16-2003, 10:20 AM
Passing data from one form to another:
http://tech.irt.org/articles/js063/index.htm

Vladdy
01-16-2003, 05:51 PM
Easiest:

somepage.html?foo=bar

then see: http://www.codingforums.com/showthread.php?s=&threadid=4555



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum