Click to See Complete Forum and Search --> : Javascript noob needs help


dustinand
12-01-2003, 12:38 PM
Ok, I'm sure this is very simple, I'm trying to get variables from the url, dont know the correct way to do it...any help?

mypage.html?var1=myvalue1&var2=myvalue2

<script language="JavaScript">
function GetVars() {
myVar1 = ??;
myVar2 = ??;
}
GetVars();
</script>

pyro
12-01-2003, 01:12 PM
Jeff Mott posted this a bit ago. It will undoubtadly help.

http://forums.webdeveloper.com/showthread.php?s=&threadid=21607#post112066