Method One: The regular analysis method
function getquerystring (name) { varnew RegExp ("(^|&)" + name + "= ([^&]*) (&|$)", "I" ); var r = window.location.search.substr (1). Match (reg); if NULL return return NULL ;}
This is called:
Alert (getquerystring ("parameter name 1")),alert (getquerystring ("parameter Name 2"), alert (getquerystring ("parameter name 3"));
Method Two:
<spanstyle= "FONT-SIZE:16PX;"><Scriptlanguage= "JavaScript">functiongetrequest () {varURL=Location.search;//gets the URL in the "?" String after the character vartherequest= NewObject (); if(Url.indexof ("?") != -1) { varStr=Url.substr (1); STRs=Str.split ("&"); for(varI= 0; I<strs.length; I++) {Therequest[strs[i].split ("=")[0]]=unescape (Strs[i].split ("=")[1]); } } returntherequest;}</Script></span>
This is called:
<script language= "JavaScript" >varnew= getrequest (); var = request[' parameter 1 '= request[' parameter 2 '= request[' parameter 3 '= request[' parameter n ']; </Script>