URL

@native @JSGlobal @JSType final class URL(url: String) extends Object

This is stolen from org.scalajs.dom so that we don't need to import the whole library.

This is stolen from org.scalajs.dom so that we don't need to import the whole library.

class Object
trait Any
class Object
trait Matchable
class Any

Value members

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from
Object
def isPrototypeOf(v: Object): Boolean
Inherited from
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object

Concrete fields

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

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 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