>From http://developer.irt.org/script/992.htm
=============================================
Q992 How can I accept a name/value pair in the current url and access
it as a variable and value?
If the URL is something like:
http://www.irt.org/index.htm?number=5
Then the following will create a JavaScript variable called number,
with the value of 5:
<script language="JavaScript"><!--
if (location.search.length > 0)
eval('var ' + location.search.substring(1));
//--></script>
=============================================
How can I expand this to cope with say
http://www.irt.org/index.htm?number=5&name=john&age=41
putting john into a variable called name and 41 into a variable called
age ?
Also, how can I unescape the URL if it's got spaces ?
thanks a lot
Jim