function getURLParameter(name) {
return decodeURI(
(RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1]
);
}
More Related Contents:
- Change URL parameters and specify defaults using JavaScript
- How can I get query string values in JavaScript?
- Adding a parameter to the URL with JavaScript
- How to convert URL parameters to a JavaScript object? [duplicate]
- Get the values from the “GET” parameters (JavaScript) [duplicate]
- How do I parse a URL query parameters, in Javascript? [duplicate]
- Get query string parameters url values with jQuery / Javascript (querystring)
- How to replace url parameter with javascript/jquery?
- Get the query string on the called javascript file
- How To Display Images Preview and Title When I Paste in Another Site Like Facebook, Whatsapp, etc
- How to pass parameter in url? pl. explain with example?
- When are you supposed to use escape instead of encodeURI / encodeURIComponent?
- How can I add or update a query string parameter?
- Is there any way to specify a suggested filename when using data: URI?
- JavaScript query string [closed]
- How can I get the destination URL for the onbeforeunload event?
- How to get a URL parameter in Express?
- How to get the anchor from the URL using jQuery?
- How to create query parameters in Javascript?
- Parsing URL hash/fragment identifier with JavaScript
- Redirecting to a relative URL in JavaScript
- Modifying a query string without reloading the page
- Regular Expression – Extract subdomain & domain
- Angular url plus sign converting to space
- Usage of Hash(#) in URL
- How to change the URL displayed in the browser without leaving the page
- Relative URLs in AJAX requests
- Detect change in query param react-router-dom v4.x and re-render component
- How do I URl encode something in Node.js?
- Checking a Url in Jquery/Javascript