<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<script language=javascript>
function GetQueryValue(sorStr,panStr){
var vStr="";
if (sorStr==null || sorStr=="" || panStr==null || panStr=="") return vStr;
sorStr = sorStr.toLowerCase();
panStr += "=";
var itmp=sorStr.indexOf(panStr);
if (itmp<0){return vStr;}
sorStr = sorStr.substr(itmp + panStr.length);
itmp=sorStr.indexOf("&");
if (itmp<0)
{
return sorStr;
}
else{
sorStr=sorStr.substr(0,itmp);
return sorStr;
}
}
var strGetQuery=document.location.search;
var id=GetQueryValue(strGetQuery,'id')
var classid=GetQueryValue(strGetQuery,'classid')
var subclassid=GetQueryValue(strGetQuery,'subclassid')
alert(id);
alert(classid);
alert(subclassid);
</script>
<BODY>
打开该页面,参面跟参数?id=1&classid=2&subclassid=3
</BODY>
</HTML>