Skip to main content
class URL

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

Constructors

new
URL(url: string | URL, base?: string | URL)

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

toJSON(): string
toString(): string

Static Methods

canParse(url: string | URL, base?: string | URL): boolean
createObjectURL(blob: Blob): string
revokeObjectURL(url: string): void