var queryStr = window.location.href.split( "?" ); if(queryStr.length>1){ if( queryStr[1] ) { var parmters = queryStr[1].split( "&" ); var parmter = new Array(); for( i = 0 ; i < parmters.length ; i++ ) { var tmp_arr = parmters[i].split( "=" ); var key = tmp_arr[0]; //attribute parmter[key] = tmp_arr[1]; //value } } }