function getquestr (URL,ref)//Obtain the parameter value{ varstr = URL.SUBSTR (Url.indexof ('?') +1); if(Str.indexof ('&') != -1) { vararr = Str.split ('&'); for(Iincharr) { if(Arr[i].split ('=')[0] ==ref) returnArr[i].split ('=')[1]; } } Else { returnUrl.substr (Url.indexof ('=') +1)}}function setquestr (URL,ref, value)//Setting parameter values{ varstr =""; if(Url.indexof ('?') != -1) Str= Url.substr (Url.indexof ('?') +1); Else returnURL +"?"+ref+"="+value; varReturnUrl =""; varSetParam =""; vararr; varModify ="0"; if(Str.indexof ('&') != -1) {arr= Str.split ('&'); for(Iincharr) { if(Arr[i].split ('=')[0] ==ref) {SetParam=value; Modify="1"; } Else{SetParam= Arr[i].split ('=')[1]; } ReturnUrl= ReturnUrl + arr[i].split ('=')[0] +"="+ SetParam +"&"; } ReturnUrl= Returnurl.substr (0, Returnurl.length-1); if(Modify = ="0") if(ReturnUrl = =str) ReturnUrl= ReturnUrl +"&"+ref+"="+value; } Else { if(Str.indexof ('=') != -1) {arr= Str.split ('='); if(arr[0] ==ref) {SetParam=value; Modify="1"; } Else{SetParam= arr[1]; } ReturnUrl= arr[0] +"="+SetParam; if(Modify = ="0") if(ReturnUrl = =str) ReturnUrl= ReturnUrl +"&"+ref+"="+value; } ElseReturnUrl=ref+"="+value; } returnURL.SUBSTR (0, Url.indexof ('?')) +"?"+ReturnUrl;} function delquestr (URL,ref)//Delete parameter values{ varstr =""; if(Url.indexof ('?') != -1) Str= Url.substr (Url.indexof ('?') +1); Else returnURL; vararr =""; varReturnUrl =""; varSetParam =""; if(Str.indexof ('&') != -1) {arr= Str.split ('&'); for(Iincharr) { if(Arr[i].split ('=')[0] !=ref) {ReturnUrl= ReturnUrl + arr[i].split ('=')[0] +"="+ Arr[i].split ('=')[1] +"&"; } } returnURL.SUBSTR (0, Url.indexof ('?')) +"?"+ RETURNURL.SUBSTR (0, Returnurl.length-1); } Else{arr= Str.split ('='); if(arr[0] ==ref) returnURL.SUBSTR (0, Url.indexof ('?')); Else returnURL; }}
JS Action URL