URL

class URL(url, base)
Arguments:

Properties

Property

Type

Description

hash

string

host

string

hostname

string

href

string

origin

string

password

string

pathname

string

port

string

protocol

string

search

string

searchParams

URLSearchParams

username

string

Methods

URL.toJSON() → string
URL.toString() → string
static URL.canParse(url: string, base: string | URL) → boolean
static URL.createObjectURL(blob: Blob) → string
static URL.parse(url: string, base: string | URL) → URL | null
static URL.revokeObjectURL(url: string)