The search property returns the query portion of a URL, including the question mark (?).
The search property is supported in all major browsers.
Return the query portion of a URL. Assume that the current URL is http://email@example.com:
The output of the code above will be:
Your message has been sent to W3Schools.