This page is Ready to Use

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

WorkerLocation

Summary

An object representing an absolute URL, set at the worker’s creation.

Properties

href
Returns the absolute URL that the object represents.

Methods

No methods.

Events

No events.

Notes

The WorkerLocation object is created by using the self.location method inside a worker thread. The self object is a reference to the WorkerGlobalScope object. The href property contains the absolute URL of the worker at its creation.

Related specifications

W3C Web Workers Specification
W3C Editor’s Draft

Attributions