This page is Almost Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

location

Summary

Returns the WorkerLocation object created for the WorkerGlobalScope object when the worker was created.

Property of apis/workers/WorkerGlobalScopeapis/workers/WorkerGlobalScope

Syntax

Note: This property is read-only.

var result = object.location;

Return Value

Returns an object of type StringString

Represents the absolute URL of the script that was used to initialize the worker, after any redirects.

Related specifications

W3C Web Workers Specification
W3C Editor’s Draft

Attributions