You need to parse an URL and return all the parameters from the URL, you can use the below javascript function:- var getURLParameters = function(url) { var result ...