You can use an object I created that will allow you to persist string and numerical values across pages. In the page that created it, make sure you tack it onto the url like so:
function moveOn()
{
self.location="newpage.htm?name="+somevalue
}
on newpage.htm, you can now acces the variable by including this object:
--------------------------
function QSHandler()
{
var i,j,tmparray,strata,prlen
strata = window.location.search
strata = strata.substring(1,strata.length)
if(strata.indexOf('&')>=0)
{
prsarray = strata.split('&')
prlen = prsarray.length
tmparray = new Array()
for(t=j=0;j<prlen;j++)
{
tmparray[t++] = prsarray[j].split('=')[0]
tmparray[t++] = prsarray[j].split('=')[1]
}
}
else
{
tmparray = new Array(strata.split('=')[0],strata.split('=')[1])
}
tlen = tmparray.length
this.data = new Array()
for(i=0;i<tlen;i++)
{
this.data[new String(tmparray
)]=tmparray[++i]
}
this.QueryString=function(x)
{
return this.data[x]
}
}
Request = new QSHandler()
----------------------------------------
and calling:
thename = Request.QueryString("name"
now, thename holds the same value as somevalue from the last page
jared@eae.net -