class URL extends Object
The URL() constructor returns a newly created URL object representing the URL defined by the parameters.
MDN
- Annotations
- @JSType() @native() @JSGlobal()
- Alphabetic
- By Inheritance
- URL
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new URL(url: String, base: String = js.native)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
var
hash: String
Is a DOMString containing a '#' followed by the fragment identifier of the URL.
Is a DOMString containing a '#' followed by the fragment identifier of the URL.
MDN
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
var
host: String
Is a DOMString containing the host, that is the hostname, a ':', and the port of the URL.
Is a DOMString containing the host, that is the hostname, a ':', and the port of the URL.
MDN
-
var
hostname: String
Is a DOMString containing the domain of the URL.
Is a DOMString containing the domain of the URL.
MDN
-
var
href: String
Is a DOMString containing the whole URL.
Is a DOMString containing the whole URL.
MDN
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
origin: String
Returns a DOMString containing the origin of the URL, that is its scheme, its domain and its port.
Returns a DOMString containing the origin of the URL, that is its scheme, its domain and its port.
MDN
-
var
password: String
Is a DOMString containing the password specified before the domain name.
Is a DOMString containing the password specified before the domain name.
MDN
-
var
pathname: String
Is a DOMString containing an initial '/' followed by the path of the URL.
Is a DOMString containing an initial '/' followed by the path of the URL.
MDN
-
var
port: String
Is a DOMString containing the port number of the URL.
Is a DOMString containing the port number of the URL.
MDN
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
var
protocol: String
Is a DOMString containing the protocol scheme of the URL, including the final ':'.
Is a DOMString containing the protocol scheme of the URL, including the final ':'.
MDN
-
var
search: String
Is a DOMString containing a '?' followed by the parameters of the URL.
Is a DOMString containing a '?' followed by the parameters of the URL.
MDN
- var searchParams: URLSearchParams
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
var
username: String
Is a DOMString containing the username specified before the domain name.
Is a DOMString containing the username specified before the domain name.
MDN
-
def
valueOf(): Any
- Definition Classes
- Object
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()