Jquery URL Parameter -
i've got function:
$.urlparam = function(name){ var results = new regexp('[\?&]' + name + '=([^&#]*)').exec(window.location.href); if (results==null){ return null; } else{ return results[1] || 0; } };
i put ?param1
behind url nothing showing up, firebug console doesn't anything.
can guys me?
Comments
Post a Comment