/ Published in: jQuery

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// thanks to Retrieve URL params with jQuery - jQuery - Snipplr Social Snippet Repository http://bit.ly/blNbaK // thanks to JQuery HowTo: Get URL parameters & values with jQuery http://bit.ly/b9rj6I // parse the URL into query strings $.urlParam = function(name) { var results = new RegExp('[?&]' + name + '=([^&#]*)').exec(window.location.href); if (!results) { return 0; } return results[1] || 0; }; // end urlParam setup
Comments
