I now have two working features, but only one gives me true flexability in capturing variables. Here is code below. not tested on older browsers but it does work on Netscape 7 and IE 6.
If you connect to the code below from a link like:
codebelow.html?blah1=blah2&blah3=blah4
than the links values are saved and then passed on to future pages.
here it is:
<html>
<head>
<script language=”JavaScript”>
function LoadPage(thePage){
var qs = location.search.substring(1);
var nv = qs.split(‘&’);
var url = new Object();
for(i = 0; i < nv.length; i++)
{
eq = nv[i].indexOf(‘=’);
url[nv[i].substring(0,eq).toLowerCase()] = unescape(nv[i].substring(eq + 1));
}
alert(thePage + ‘?’ + unescape(qs));
location.href = thePage + ‘?’ + unescape(qs);
}
</script>
</head>
<body>
<a href=javascript:LoadPage(“page1.html”)>page 1</a>
<a href=javascript:LoadPage(“page3.html”)>page</a>
</body>
</html>