Posted
Filed under Htm&Javascript
function GetSearchQuery(strName){
    var oLocation = location.href;
     if(oLocation.indexOf('?') > 0){
      var strUri = oLocation.split('?');
      var strParam = strUri[1].split('&');
      for(var i=0; i<strParam.length; i++){
       if(strParam[i].indexOf('=') > 0){
        var strQuery = strParam[i].split('=');
        if(strQuery[0] == strName)
          return strQuery[1];
       }
      }//end for
     }//end if
    return "";
   }
2009/09/28 13:45 2009/09/28 13:45

blog.visualp.com