9951 explained code solutions for 126 technologies


javascriptGet query parameter value of specified URL


(new URL(some_url)).searchParams.get(param);ctrl + c
new URL

create native JS URL object to parse specified URL

some_url

URL to parse

searchParams

list of all get parameters

(param)

name of query string parameter to get value of