search

abstract val search: String

URL: search

From MDN: "The search property of the URL interface is a search string, also called a query string, that is a string containing a '?' followed by the parameters of the URL."

 

Notes & further reading

Example value:

const url = new URL("https://elide.dev/?one=two#hello");
url.search;
← "?one=two"

See also

for a more convenient way to access the query parameters.