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;             }         }; 

fiddle

i put ?param1 behind url nothing showing up, firebug console doesn't anything.

can guys me?


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -