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
Microsoft Developer Network: Windows Internet Explorer API reference Article