Skip to main content
Version: 3.45.0

URLSearchParams.get()

The get() method of the URLSearchParams interface returns the first value associated to the given search parameter.

Syntax​

get(name)

Parameters​

  • name
    • : The name of the parameter to return.

Return value​

A string if the given search parameter is found; otherwise, null.