Created
April 13, 2010 06:08
-
-
Save skoon/364358 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var url = $(e.target).attr("href"); | |
if (url !== null && url != "" && url !== "undefined") | |
{ | |
var params = (function() { | |
var qs = url.split("?"); | |
var p = qs[1].split("&"); | |
var params = {}; | |
var l = p.length; | |
for(var c=0;c<l;c++) | |
{ | |
var v = p[c].split("="); | |
params[v[0]] = v[1]; | |
} | |
return params; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment