This function gets URL variables in JavaScript. Current page url parameters will be parsed into array, that will be returned.
Source code viewer
function get_url_variables(url) { var vars = {}; }); return vars; } var parameters = get_url_variables(window.location.href);Programming Language: PHP