showing results for - "jquery get parameter from url"
Yasmine
18 Jan 2020
1function GetUrlParameter(sParam)
2
3{
4    var sPageURL = window.location.search.substring(1);
5
6    var sURLVariables = sPageURL.split('&');
7
8    for (var i = 0; i < sURLVariables.length; i++)
9    {
10        var sParameterName = sURLVariables[i].split('=');
11
12        if (sParameterName[0] == sParam)
13
14        {
15            return sParameterName[1];
16        }
17    }
18}
19
20And this is how you can use this function assuming the URL is,
21http://dummy.com/?technology=jquery&blog=jquerybyexample.
22
23var tech = GetUrlParameter('technology');
24var blog = GetUrlParameter('blog');
Jessie
28 Jul 2017
1var currentURL = $(location).attr('href'); 
2var currentURL = window.location.href;
Alex
22 Aug 2018
1function getUrlParameter(name, url) {
2    if (!url) {
3        url = window.location.href;
4    }
5    name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]');
6    var regex = new RegExp('[\\?&]' + name + '=([^&#]*)');
7    var results = regex.exec(url);
8    return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' '));
9}
10
11
12//url = abc.com?techonology=software&blog=test
13var tech = getUrlParameter('technology');
14var blog = getUrlParameter('blog');
15
Jacopo
25 Oct 2019
1var getUrlParameter = function getUrlParameter(sParam) {
2    var sPageURL = window.location.search.substring(1),
3        sURLVariables = sPageURL.split('&'),
4        sParameterName,
5        i;
6
7    for (i = 0; i < sURLVariables.length; i++) {
8        sParameterName = sURLVariables[i].split('=');
9
10        if (sParameterName[0] === sParam) {
11            return typeof sParameterName[1] === undefined ? true : decodeURIComponent(sParameterName[1]);
12        }
13    }
14    return false;
15};
16And this is how you can use this function assuming the URL is,
17http://dummy.com/?technology=jquery&blog=jquerybyexample.
18
19var tech = getUrlParameter('technology');
20var blog = getUrlParameter('blog');
Roberto
22 Sep 2016
1var getUrlParameter = function getUrlParameter(sParam) {
2    var sPageURL = window.location.search.substring(1),
3        sURLVariables = sPageURL.split('&'),
4        sParameterName,
5        i;
6
7    for (i = 0; i < sURLVariables.length; i++) {
8        sParameterName = sURLVariables[i].split('=');
9
10        if (sParameterName[0] === sParam) {
11            return typeof sParameterName[1] === undefined ? true : decodeURIComponent(sParameterName[1]);
12        }
13    }
14    return false;
15};
16
queries leading to this page
jquery this urljquery arg from pathget fucl url jsueryget 23 from url jqueryjquery url parameter c3 a4ndernretrieve url jqueryjqueyr get page urlget value parameter url jqueryget url parameters jqueryhow to get url parameter jqueryjquery get parameter value from urljquery to work url paramsjquery window urlurl parameter jqueryget jquery urljquery get get variable from urlhow to pass url in jquery functionget url path jqueryjquerry get the param from urljquery query parameters urlhow to get 3furl jquerygeturlparameter without separator in jqueryjquery get 23 from urljquery change get parameter in urljquery get location parametersjquery url getjquery get param value from urljquery get url paramscan jquery get current page urlget page url jqueryjquery to get url parametersget parameter from url current jqjavascript jquery get page url from get functionget parameter from jqueryjq to get urljquery get var from urlhow to get current page url in jqueryjquery get current url queryusing jquery get urlget url jqurycurrent page url in jqueryjquery get location paramjsquery get paramter value from url 24 urlparam 3d function 28name 29 7bjquery query stringget parameter jquery jquery get url of this elementjquery fetch 28 29 url parametersjquery get url param valuejquery get url request parametersjq get param from current urljquery check current urljquery check url for a paramentjquery get url of a tagjquery current element urljqyery get url parameter by namehow to get the url in jqueryjquery get query string parameter from urlhget url in jqueryhow to get name of parameter and value of url in jqueryjquery get parameter in urlonload get param value from url in jqueryget value from url in jqueryurl in jqueryjquery check url parameterjquery get parameter from url stringjquery read url of pagejquery get current url with parametersget current url by jqueryget url attribute jqueryjquery get path parameterjquery get url stringget page url with jqueryget url parameters using jqueryjquery get current url source html tagjquery get request url parameterjquery get url pathcheck current page url in jquerystore link parameters jqueryget variable value from url in jqueryjquery get url parameterjquery get parametersget url params in jqueryurl get in jqueryget parameter from url jquery after 3fget path name jqueryjquery get parameters from url stringget request params jqueryget url parameters only with jqueryjquery paramjquery current page urljquery get data by parameter url parameterhow to get page url using jqueryget parameter from a tag jqueryget url using jqueryget specific parameter from url jqueryjquery get link of pagejquery http get request ad query parameters to urlget current page url name in jquerydetect if get parameter in link jquerygrab url in jquerycurrent url get in jqueryget parameter from url in jqueryjquery get url variablejavascript jquery get url parameterjquery get parameterget the url jqueryjquery get get parameterget variable from url jqueryjquery get paramsjquery get all urljquery current urljquery url param gethow to mention query parameter in jqueryjquery url paramtersget the current url using javascript or jquerycheck current page jquerycurrent page link in jqueryget url params jqueryjquery query string parameters javascriptjquery url get valuejquery full urlpass url as variable jquery jquery call get urlurlparams get 28 22id 22 29 length errorjquery urlhow to get a parameter from url in jqueryjquery get url search paramsjquery get with parampass parameter in url jqueryjquery get url without parametersshow current url in jqueryjquery get to linkhow to use jquery to get the urlhow to get 23 value from url in jqueryget url parameter javascript jqueryjquery get html from urlget parameter value from url jqueryjquery http parametersjquery get urljquery get url query valuejquery detect url pathjquery path urljs get url parameter jqueryjquery get page parametersjquery get url path with query stringjqwuery get url parametersjquery check current page urlhow to get a the url in jqueryjquery get current routehow to get a url in jqueryget the current url in jqueryjquery get pag urlget url in js jqueryjquery parse url parametersjquery read current urljquery get from url parameetreturn url parameter by name jqueryjquery get route parameterget current url jqueryget param from url jqueryjquery on load get url parameterjquery get the urlcurrent url jqueryget parameter from url javascript jqueryfind url in html using jqueryget query parameter from url in jqueryget link url jqueryjquery get url linkjquery urlsearch params decode urlcontext of url jqueryget get parameter jqueryhow to check url parameter in jqueryjquery get parameter from methodjquery get from urlaacces url query parameters in jqueryjquery get params from stringjquery get query parameter from urljquery get current url pathrecognize url by jqueryjquery get url query paramsget the url parameters in jqueryjquery hit urljq get page urljquery get parameter from hrefjquery get locationjqueryjs get get paramget query param from url jqueryget param in url jqueryjquery get specific parameter from urljquery read url parametersjquery get from url parameterjquery using get current page urlhow to get parameters from a url string in jquery shortcutget value to url jqueryget parameter from url using jquerywindow url jqueryjquery get in urljquery urlget parameter in url jqueryhow to get value from url in jqueryget param from url and use it jqueryget value from url jqueryjquery get url query string parametersjquery get url parajquery get query string value from urlget url from jqueryget current 23 in url jqueryjquery get url from stringget window url jqueryhow to get get parameter from url in jqueryjquery make url paramsjquery get 28urlsearch param on url jqueryjquery get url prameterjquery get request parameter from urljquery get url with parametersget the url with jqueryget url from browser jqueryurl parameter value jqueryjq get param from urljquery get url request parameterjquery read urlget current url using jqueryhow to get url jqueryget jquery url parametersjquery check parameter in url 24 getvalues passed value query jqueryjquery get current domain jsjquery query stringhow to get page url in jqueryget html from url jqueryjquery url 23jquery get parameter name from stringget url details using jquery jquerry get urlget get attribute jquery from url 5cjquery from urljquery get variable from urljqueery get current urljavascript get url parameter jqueryget url of page in jquerypathname ready jqueryjquery get current url 24 get 28 27url 27 29 jqueryhow to get url query string value in jquerydefine url args global jqueryget end ul into website jquryhow to get the value from url in jquerycurrent href jquerycheck current url in jquerytake get from link jqueryhow to get current url jqueryget url with parameters in jqueryjquery get params from current urljquery get query parameters from request urlhref url parameter get value jqueryget params jquerycheck if page has dynamic parameters jqueryjquer get urihow to read url parameters in jqueryjquery get get variable from url on page loadjquery 24 get parametersget your url jqueryjquery get url from browsercurrent window url jqueryjavascript jquery 22this 22 22url 22test object in getpath jqueryget url from jqget full url jqueryurl get request jqueryjquery get query parametersjquery get arguments from urljquery get a linkjquery javascript get urljquery get current url with query stringjquery get params from linkjquery get page urkjquery using url in get akkvaluesgetquerry string params urlhow to get params from url in jqueryget url param jqueryjquery read url paramget params url jqueryjquery get url addressjquery url thisget page url in jqueryhow to get baase url jqueryjquery get 23div urljquerry get link parametersget url call in jqueryurl with parameters jqueryget current url after 3f in jqueryhow to get page url in jqueryhow to get url params in jqueryjquery to work get paramsjavascript get parameter from url jqueryjquery read params from urljquery url get parameter valueget site url in jqueryhow to get value from url parameter in jqueryjquery get query string parameterusing jquery how to get urlhow i can get current url in jqpass parameter to url using jqueryget value of url parameter jqueryjquery get url params by keyjquery to set 2fget url paramshow to get param from url in jqueryjquery get url parameter utmjquer get urljquery get the current ur 3bhow to read current url in jqueryjquery get this urljquery grab get paramget url of the page jquerycheck url parameter jqueryget params from url jqueryget argument for jqueryjquery get 23in urlget url parameter with jqueryhow to get a particular value from url in jqueryhow to pass parameter in url in jqueryget url jquery paramsjquery get dom from urljquery get location with paramsjquery extract get parameters from urlread url query parameters jqueryjquery check url paramget request url using jqueryurl get parameter space breaks jqueryjquery url parametersget value from url using jqueryset url parameter jqueryurl params jqueryjquery get uri pathjquery 24get urljquery get query parameterjquery retrieve value from urlhow to get url parameter using jquery or plain javascriptif get url jqueryget current url in jqueryjquery get html from a website urljquery get url queryjavascript jquery get urlget specific parameter url jqueryjquery javascript get url parameterget url value from jqueryget url parameter using jqueryget the get parameter jqueryhow to find current url in jqueryurl parameter get jqueryparameter from url jqueryjquery paramsjquery location paramhow to get param from url jqueryjquery to get param from urlgeturlparameter javascriptjquery parameters from urljquery get request urlgetquerry string paramsget url with jqueryget url with 23 using jqueryhow to get url parameter in jqueryjquery url parameterjquery get url query stringget query string value in jquery 24 url param in jquerysave all url parameters jqueryget page url using jqueryjquery ur 2curl separate parameters jqueryjquery get get paramsjquery get url attributeshow to get current url jquerryget url jqueryget url get params jqueryjquery get number for parameter from urljquery get url attributejquery how to get the urljquery get url valuejquery form get url and parametershow to get current url location in jqueryget page args jqueryget url jqjquery read url query parametersget url id in jqueryjquery get paramhow to get current url parameters in jqueryget url param value jqueryjs get url params jqueryjquery url get parametershow to get url value in jqueryget current url irrespective of back urlget current url path jqueryjqeury get current urlhow to get a param value from url using jqueryget current url parameters jqueryjquery get url parameter after 3fget url in jqform url how to read the parameters in jqueryjquery get parameters from urlget url variable using jqueryget url in jn jqget browser url jqueryjquery get string from urlcjquery url paramjquery library urljquery get window urlhow to get current page url jquerya href method get parameters jqueryjquery get query parameter by hrefhow to make url in jquery with search parameterjquery get after in url paramsjquery url paramget browser url in jqueryget request using 24 param jqueryurl jqueryjquery get method parameterget the url of the current page in jqueryjquery parameter from urlhow to get url get value in jqueryjquery get parameter from urljquery t find current urlget value parameter url script jquerycurent url in jqueryjquery get the current urljquery using get page urljquery get domain urlget 23 value from url jqueryjquery find a with current urljquery get url parameter from hrefhow to get path param from url in jqueryhow to get page url from jqueryjquery get actual urlget url parameters access in jqueryjquery how to get current urljquery get url parameters valuejquery get current url without parametersjquery get parameter valuehow to get url param in jqueryhow to get parameter in url in jqueryjquery variable urlhow to get url js jqueryget current page url in jqueryget parameter value from current page url jqueryjquery page urljquery get url elementjquery get current page urlhow to get url in jqyeryget url parameter jqueryjquery getu url parameterhow to get url using jqueryget url param in jqueryurl parameters in jqueryjquery on page load get urljquery get query paramsjavascript geturlparameter same query stringget data from url query jqueryhow to get the url parameter in jqueryjquery get parameter from htmljquery if get parameter from urljquery to get urjquery send current url parametersget vaslue from url parameter jquerycurrent url in jqueryfind url parameter in jqueryjquery check urljquery get link urljquery html parameterlocation get jqueryget to pull url parameters jqueryjquery get url indexhow to get uri from url in jqueryjquery get url requestjquery how to get urljquery get location paramshow to get parameters of the current url jqueryhow to fetch url through jquery and print itget url value in jqueryjquery to get the url of the current pagepage url in jqueryjquery get current url parameters after 2fjquery get document urlget query parameter from url jqueryjquery get current uriget url base jqueryparse url parameters jqueryjquery get param urljquery grab url parameterjquery 23url valuesget param jqueryjquery get get request parameterhow to get parameter from html function in jqueryjquery get url and parametersjqueryy get urlhow to get parameter from url in jqueryget url in jqueryget parameters from window location jqueryhow to get url in jqueryget the url in jqueryget current url with jqueryjquery get page urljs jquery paramsjquery get request with parametersjquery get with paramsjquery get url of current pageget url and its parametervalue in jqyerjquery get params from urljquery get website urlget full url in jqueryget previous url in jqueryjquery get url paramread url parameters jqueryjquery how to get parameter from urlhow to get get params in jqueryget url from link jquerygo to current url with parameter jqueryjquery get url parameter by nameget url paramiter jqueryhow to get value from url in javascript jqueryget parameter from url jqueryjquery get full url with parametersjquery make url parameterhow to use get parameter in jqueryget params in url jqueryjquery t urlhow to get parameters from a url string in jqueryjquery fetch url parameters 24 get params jqueryextract parameters from url jqueryjquery get data from url parameterjquery get request parameterjquery get element from urljquery get base urlget url string in jqueryhow we get url parameters value in jqueryjquery url paramsjquery get params from url stringjquery http get ad params to urlhow to get url in jqueryhow to find current url path in jqueryjquery set variable to current urljquery get query params from urlget value from url parameter jqueryjquery url with parametersjquery check get parameterjquery get url pagecall function geturlparameter jqueryhow to get form parameter from url in jqueryjqery extract all url havejquert get url paramjquery get 28url 29jquery go to url with parametersget url of page jqueryjquery get site urljquery find from the string url parameter valueget parameters url jquerygetting parameters from url in jqueryjquery params urljquery this urljqueryget url parameterget parameters from url jqueryhow to get url parameter value in jqueryjquery get the site urlfind url parameter in jquery after 3fjquery work with url parametersjquery get active urlget server url in jqueryjquery get url with parameters jqueryget curent url using jqueryjquery select url parameterhow to hit url in jqueryhow to take url of website in jqueryjquery get value from urljquery get the url parameterjquery get current url parametersjquery get url query parameterjquery get url parameter stringhow to get param value from url in jqueryjquery get value from url parameterjavascript jquery ajax get url parameterhow to get the url of the current page in jqueryjquery get value of url parametercurrent page url jqueryjquery get attribute from urlget parameter from get jqueryjquery get get parametersjquery location url get parametershow to use url to in jqueryjquery get full url from serverjquery how to get a parameter from urlhow to get the current url in jqueryjavascript jquery get location url of requesthow to get current url in jqueryjava jquery get parameter from urlget arguments url jqueryjquery check for url parameterjquery get url parametersget site url jqueryget url parameters javascript jqueryget url parameter in jquerycheck parameter in url jqueryhow to get query parameters from url in jqueryjquery get url paramater valueget query parameter from urlwquery paramsjquery add 20 to url parameterget specific url parameter jqueryget full current url in jqueryjquery how to get the parameters from url in javascriptjquery url args globalget paraments from url in jqueryurl get jqueryjqery get urlhow to get url parameters in jqueryjquery get linkjquery get the url 23 parameterget parameter value in jqueryjavascript jquery get url from get functionjquery read parameter from urljquery get location urlgclid get parameters jqueryjquery get url parametervaluejquery get url from pagejquery read val into url after 23jquery access url parameterscheck parameter jqueryjquery get url param 2cget url value in jqueyjquery get parameter from url