This article is mainly to get the URL in the specified parameter value of the sample code is introduced, need friends can come over the reference, I hope to help you.
The following: The code is as follows: ///get the specified parameter in the URL //<param Name= "paras" > Parameter name </param> /// function request (paras) { var URL = Location.href; var parastring = url.substring (Url.indexof ("?") + 1, url.length). Split ("&"); var paraobj = {} for (i = 0; j = para String[i]; i++) { paraobj[j.substring (0, j.indexof ("=")). toLowerCase ()] = J.S Ubstring (j.indexof ("=") + 1, j.length); var returnvalue = Paraobj[paras.tolo Wercase ()]; if (typeof (returnvalue) = "undefined") { &N Bsp Return ""; } else { return returnvalue; &N Bsp } }