Skip to main content
Module

x/uuid/lib/lib.deno_runtime.d.ts>domTypes.Location

Deprecated! UUID is part of the deno standard library
Latest
interface domTypes.Location
import { type domTypes } from "https://deno.land/x/uuid@v0.1.2/lib/lib.deno_runtime.d.ts";
const { Location } = domTypes;

Properties

readonly
ancestorOrigins: string[]

Returns a DOMStringList object listing the origins of the ancestor browsing contexts, from the parent browsing context to the top-level browsing context.

hash: string

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 "#").

host: string

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.

hostname: string

Returns the Location object's URL's host. Can be set, to navigate to the same URL with a changed host.

href: string

Returns the Location object's URL. Can be set, to navigate to the given URL.

readonly
origin: string

Returns the Location object's URL's origin.

pathname: string

Returns the Location object's URL's path. Can be set, to navigate to the same URL with a changed path.

port: string

Returns the Location object's URL's port. Can be set, to navigate to the same URL with a changed port.

protocol: string

Returns the Location object's URL's scheme. Can be set, to navigate to the same URL with a changed scheme.

Methods

assign(url: string): void

Navigates to the given URL.

reload(): void

Reloads the current page.

deprecated
reload(forcedReload: boolean): void
replace(url: string): void

Removes the current page from the session history and navigates to the given URL.