password
URL: password
From MDN: "The password property of the URL interface is a string containing the password specified before the domain name. If it is set without first setting the username property, it silently fails."
Notes & further reading
Username property must always be set first
Spec: URL Standard
MDN: URL.password
Example value:
const url = new URL("https://hello:cool@elide.dev/?one=two#hello");
url.password;
← "cool"
Content copied to clipboard