The location (URL) of the object it is linked to. Changes done on it are
reflected on the object it relates to. Accessible via
globalThis.location.
Properties Jump to heading
Returns a DOMStringList object listing the origins of the ancestor browsing contexts, from the parent browsing context to the top-level browsing context.
Always empty in Deno.
Jump to headinghash: stringReturns the Location object's URL's fragment (includes leading "#" if non-empty).
Cannot be set in Deno.
Jump to headinghost: stringReturns the Location object's URL's host and port (if different from the default port for the scheme).
Cannot be set in Deno.
Jump to headinghostname: stringReturns the Location object's URL's host.
Cannot be set in Deno.
Jump to headinghref: stringReturns the Location object's URL.
Cannot be set in Deno.
Jump to headingorigin: stringReturns the Location object's URL's origin.
Jump to headingpathname: stringReturns the Location object's URL's path.
Cannot be set in Deno.
Jump to headingport: stringReturns the Location object's URL's port.
Cannot be set in Deno.
Jump to headingprotocol: stringReturns the Location object's URL's scheme.
Cannot be set in Deno.
Jump to headingsearch: stringReturns the Location object's URL's query (includes leading "?" if non-empty).
Cannot be set in Deno.
Methods Jump to heading
Jump to headingtoString(): stringJump to headingassign(url: string): voidNavigates to the given URL.
Cannot be set in Deno.
Jump to headingreload(): voidReloads the current page.
Disabled in Deno.
Jump to headingreload(forcedReload: boolean): voidJump to headingreplace(url: string): voidRemoves the current page from the session history and navigates to the given URL.
Disabled in Deno.