WorkerLocation

@native @JSType
trait WorkerLocation extends Object

The WorkerLocation interface defines the absolute location of the script executed by the Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.location property obtained by calling window.self.location.

class Object
trait Any
class Object
trait Matchable
class Any

Value members

Concrete methods

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

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

def hostname: String

Is a DOMString containing the domain of the URL.

Is a DOMString containing the domain of the URL.

def href: String

Is a DOMString containing the whole URL.

Is a DOMString containing the whole URL.

def origin: String

The origin read-only property is a String containing the Unicode serialization of the origin of the represented URL, that is, for http and https, the scheme followed by '://', followed by the domain, followed by ':', followed by the port (the default port, 80 and 443 respectively, if explicitly specified). For URL using file: scheme, the value is browser dependant.

The origin read-only property is a String containing the Unicode serialization of the origin of the represented URL, that is, for http and https, the scheme followed by '://', followed by the domain, followed by ':', followed by the port (the default port, 80 and 443 respectively, if explicitly specified). For URL using file: scheme, the value is browser dependant.

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

def port: String

Is a DOMString containing the port number of the URL.

Is a DOMString containing the port number of the URL.

def 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 ':'.

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

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