Нужно парсить location
<html>
<body>
<script language=javascript>
function getenv(i){
if (!i.length) { return false; }
qStr = document.location.href;
strpos = qStr.indexOf("?"+i+"=");
if ( strpos ==-1 ) { strpos = qStr.indexOf("&"+i+"="); }
if ( strpos == qStr.length || strpos ==-1 ) { return false; }
val = qStr.substring( (strpos+i.length)+2, qStr.length);
strpos = val.indexOf("&");
if ( strpos !=-1 ) { val = val.substring(0, strpos ); }
if ( !val.length ) { return false; } else { return val; }
}
document.write( getenv("parametr") );
</script>
</body>
</html>
http://dimsi.sibfair.nsc.ru/getenv.htm?parametr=111111