URL

Overview

The URL interface is used to parse, construct, normalize, and encode URLs. It works by providing properties which allow you to easily read and modify the components of a URL.

Location

 

hash

 

property hash: String read write;

 

String hash { get; set; }

 

var hash: String { get{} set{} }

 

String hash { __get; __set; }

 

Property hash() As String

host

 

property host: String read write;

 

String host { get; set; }

 

var host: String { get{} set{} }

 

String host { __get; __set; }

 

Property host() As String

hostname

 

property hostname: String read write;

 

String hostname { get; set; }

 

var hostname: String { get{} set{} }

 

String hostname { __get; __set; }

 

Property hostname() As String

href

 

property href: String read write;

 

String href { get; set; }

 

var href: String { get{} set{} }

 

String href { __get; __set; }

 

Property href() As String

origin

 

property origin: String read;

 

String origin { get; }

 

var origin: String { get{} }

 

String origin { __get; }

 

ReadOnly Property origin() As String

password

 

property password: String read write;

 

String password { get; set; }

 

var password: String { get{} set{} }

 

String password { __get; __set; }

 

Property password() As String

pathname

 

property pathname: String read write;

 

String pathname { get; set; }

 

var pathname: String { get{} set{} }

 

String pathname { __get; __set; }

 

Property pathname() As String

port

 

property port: String read write;

 

String port { get; set; }

 

var port: String { get{} set{} }

 

String port { __get; __set; }

 

Property port() As String

protocol

 

property protocol: String read write;

 

String protocol { get; set; }

 

var protocol: String { get{} set{} }

 

String protocol { __get; __set; }

 

Property protocol() As String

 

property search: String read write;

 

String search { get; set; }

 

var search: String { get{} set{} }

 

String search { __get; __set; }

 

Property search() As String

searchParams

 

property searchParams: dynamic read;

 

dynamic searchParams { get; }

 

var searchParams: dynamic { get{} }

 

dynamic searchParams { __get; }

 

ReadOnly Property searchParams() As dynamic

toJSON

Returns a USVString  containing the whole URL. It returns the same string as the href property.

 

method toJSON: String

 

String toJSON()

 

func toJSON() -> String

 

String toJSON()

 

Function toJSON() As String

toString

Returns a USVString containing the whole URL. It is a synonym for URL.href, though it can't be used to modify the value.

 

method toString: String

 

String toString()

 

func toString() -> String

 

String toString()

 

Function toString() As String

username

 

property username: String read write;

 

String username { get; set; }

 

var username: String { get{} set{} }

 

String username { __get; __set; }

 

Property username() As String

 

hash

 

property hash: String read write;

 

String hash { get; set; }

 

var hash: String { get{} set{} }

 

String hash { __get; __set; }

 

Property hash() As String

host

 

property host: String read write;

 

String host { get; set; }

 

var host: String { get{} set{} }

 

String host { __get; __set; }

 

Property host() As String

hostname

 

property hostname: String read write;

 

String hostname { get; set; }

 

var hostname: String { get{} set{} }

 

String hostname { __get; __set; }

 

Property hostname() As String

href

 

property href: String read write;

 

String href { get; set; }

 

var href: String { get{} set{} }

 

String href { __get; __set; }

 

Property href() As String

origin

 

property origin: String read;

 

String origin { get; }

 

var origin: String { get{} }

 

String origin { __get; }

 

ReadOnly Property origin() As String

password

 

property password: String read write;

 

String password { get; set; }

 

var password: String { get{} set{} }

 

String password { __get; __set; }

 

Property password() As String

pathname

 

property pathname: String read write;

 

String pathname { get; set; }

 

var pathname: String { get{} set{} }

 

String pathname { __get; __set; }

 

Property pathname() As String

port

 

property port: String read write;

 

String port { get; set; }

 

var port: String { get{} set{} }

 

String port { __get; __set; }

 

Property port() As String

protocol

 

property protocol: String read write;

 

String protocol { get; set; }

 

var protocol: String { get{} set{} }

 

String protocol { __get; __set; }

 

Property protocol() As String

 

property search: String read write;

 

String search { get; set; }

 

var search: String { get{} set{} }

 

String search { __get; __set; }

 

Property search() As String

searchParams

 

property searchParams: dynamic read;

 

dynamic searchParams { get; }

 

var searchParams: dynamic { get{} }

 

dynamic searchParams { __get; }

 

ReadOnly Property searchParams() As dynamic

username

 

property username: String read write;

 

String username { get; set; }

 

var username: String { get{} set{} }

 

String username { __get; __set; }

 

Property username() As String

 

toJSON

Returns a USVString  containing the whole URL. It returns the same string as the href property.

 

method toJSON: String

 

String toJSON()

 

func toJSON() -> String

 

String toJSON()

 

Function toJSON() As String

toString

Returns a USVString containing the whole URL. It is a synonym for URL.href, though it can't be used to modify the value.

 

method toString: String

 

String toString()

 

func toString() -> String

 

String toString()

 

Function toString() As String