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

type

{ prototype: URL; new (url: string | URL, base?: string | URL): URL; createObjectURL(object: any): string; revokeObjectURL(url: string): void; }