package js.html
Available on js
The URL interface represents an object providing static methods used for creating object URLs.
Documentation URL by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
staticcreateObjectURL(source:MediaSource):StringstaticcreateObjectURL(blob:Blob):StringThrows:
null |
DOMError |
|---|
staticrevokeObjectURL(url:String):VoidThrows:
null |
DOMError |
|---|
new(url:String, ?base:String)Throws:
null |
DOMError |
|---|
hash:StringIs a DOMString containing a '#' followed by the fragment identifier of the URL.
host:StringIs a DOMString containing the domain (that is the hostname) followed by (if a port was specified) a ':' and the port of the URL.
hostname:StringIs a DOMString containing the domain of the URL.
href:StringIs a DOMString containing the whole URL.
read onlyorigin:StringReturns a DOMString containing the origin of the URL, that is its scheme, its domain and its port.
password:StringIs a DOMString containing the password specified before the domain name.
pathname:StringIs a DOMString containing an initial '/' followed by the path of the URL.
port:StringIs a DOMString containing the port number of the URL.
protocol:StringIs a DOMString containing the protocol scheme of the URL, including the final ':'.
search:StringIs a DOMString containing a '?' followed by the parameters of the URL.
read onlysearchParams:URLSearchParamsReturns a URLSearchParams object allowing to access the GET query arguments contained in the URL.
username:StringIs a DOMString containing the username specified before the domain name.
toJSON():String
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/URL.html