Skip to main content
interface URL

The URL interface represents an object providing static methods used for creating object URLs.

Properties

hash: string
host: string
hostname: string
href: string
readonly
origin: string
password: string
pathname: string
port: string
protocol: string
readonly
searchParams: URLSearchParams
username: string

Methods

toString(): string
toJSON(): string
variable URL

The URL interface represents an object providing static methods used for creating object URLs.

type

{ readonly prototype: URL; new (url: string | URL, base?: string | URL): URL; canParse(url: string | URL, base?: string | URL): boolean; createObjectURL(blob: Blob): string; revokeObjectURL(url: string): void; }