{{ApiRef("URL API")}}{{SeeCompatTable}}
The get() method of the {{domxref("URLSearchParams")}} interface returns the first value associated to the given search parameter.
Syntax
URLSearchParams.get(name)
Parameters
- name
- The name of the parameter to return.
Returns
A {{domxref("USVString")}}.
Specifications
Specification | Status | Comment |
---|---|---|
{{SpecName('URL', '#dom-urlsearchparams-get', "get()")}} | {{Spec2('URL')}} | Initial definition. |
Browser compatibility
{{CompatibilityTable}}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | {{CompatChrome(49.0)}} |
Feature | Android | Android Webview | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile | Chrome for Android |
---|---|---|---|---|---|---|---|---|
Basic support | {{CompatNo}} | {{CompatChrome(49.0)}} | {{CompatChrome(49.0)}} |