class URL extends Object
The URL() constructor returns a newly created URL object representing the URL defined by the parameters.
- Annotations
- @JSType() @native() @JSGlobal()
- Alphabetic
- By Inheritance
- URL
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- 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.
- 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.
- var hostname: String
Is a DOMString containing the domain of the URL.
- var href: String
Is a DOMString containing the whole URL.
- 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.
- var password: String
Is a DOMString containing the password specified before the domain name.
- var pathname: String
Is a DOMString containing an initial '/' followed by the path of the URL.
- var port: String
Is a DOMString containing the port number of the URL.
- def propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
- var protocol: String
Is a DOMString containing the protocol scheme of the URL, including the final ':'.
- var search: String
Is a DOMString containing a '?' followed by the parameters of the URL.
- 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.
- def valueOf(): Any
- Definition Classes
- Object
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()