hash

abstract val hash: String

URL: hash

From MDN: "The hash property of the URL interface is a string containing a '#' followed by the fragment identifier of the URL. The fragment is not percent-decoded. If the URL does not have a fragment identifier, this property contains an empty string — ""."

 

Notes & further reading

Example value:

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