WorkerLocation
The absolute location of the script executed by the Worker.
Available via the global location property.
See also
Constructor
new WorkerLocation()Properties
The fragment identifier (# followed by the fragment) of the worker's URL.
The host (hostname and port) of the worker's URL.
The hostname of the worker's URL.
The serialized URL of the worker's location.
The origin of the worker's URL.
The pathname of the worker's URL.
The port of the worker's URL.
The protocol scheme of the worker's URL.
The query string (? followed by parameters) of the worker's URL.
Methods
toString
View sourcetoString(): stringReturns the serialized URL. Synonym for WorkerLocation.href.
Returns
string