WorkerLocation

The WorkerLocation interface defines the absolute location of the script executed by the Worker.

MDN Reference

Properties

Link copied to clipboard

The hash property of a WorkerLocation object returns the URL.hash part of the worker's location.

Link copied to clipboard

The host property of a WorkerLocation object returns the URL.host part of the worker's location.

Link copied to clipboard

The hostname property of a WorkerLocation object returns the URL.hostname part of the worker's location.

Link copied to clipboard

The href property of a WorkerLocation object returns a string containing the serialized URL for the worker's location.

Link copied to clipboard

The origin property of a WorkerLocation object returns the worker's URL.origin.

Link copied to clipboard

The pathname property of a WorkerLocation object returns the URL.pathname part of the worker's location.

Link copied to clipboard

The port property of a WorkerLocation object returns the URL.port part of the worker's location.

Link copied to clipboard

The protocol property of a WorkerLocation object returns the URL.protocol part of the worker's location.

Link copied to clipboard

The search property of a WorkerLocation object returns the URL.search part of the worker's location.