import { type dom } from "https://deno.land/x/evt@v2.5.6/lib/types/index.ts";
const { Location } = dom;
The location (URL) of the object it is linked to. Changes done on it are reflected on the object it relates to. Both the Document and Window interface have such a linked Location, accessible via Document.location and Window.location respectively.
Properties
Returns a DOMStringList object listing the origins of the ancestor browsing contexts, from the parent browsing context to the top-level browsing context.
Returns the Location object's URL's fragment (includes leading "#" if non-empty).
Can be set, to navigate to the same URL with a changed fragment (ignores leading "#").
Returns the Location object's URL's host and port (if different from the default port for the scheme).
Can be set, to navigate to the same URL with a changed host and port.
Returns the Location object's URL's host.
Can be set, to navigate to the same URL with a changed host.
Returns the Location object's URL's path.
Can be set, to navigate to the same URL with a changed path.
Returns the Location object's URL's port.
Can be set, to navigate to the same URL with a changed port.
Returns the Location object's URL's scheme.
Can be set, to navigate to the same URL with a changed scheme.