Baseline Widely available
Note: This feature is only available in Web Workers.
The WorkerLocation
interface defines the absolute location of the script executed by the Worker
. Such an object is initialized for each worker and is available via the WorkerGlobalScope.location
property obtained by calling self.location
.
This interface is only visible from inside a JavaScript script executed in the context of a Web worker.
Instance propertiesWorkerLocation.href
Read only
Returns a string containing the serialized URL
for the worker's location.
WorkerLocation.protocol
Read only
Returns the protocol
part of the worker's location.
WorkerLocation.host
Read only
Returns the host
part of the worker's location.
WorkerLocation.hostname
Read only
Returns the hostname
part of the worker's location.
WorkerLocation.origin
Read only
Returns the worker's origin
.
WorkerLocation.port
Read only
Returns the port
part of the worker's location.
WorkerLocation.pathname
Read only
Returns the pathname
part of the worker's location.
WorkerLocation.search
Read only
Returns the search
part of the worker's location.
WorkerLocation.hash
Read only
Returns the hash
part of the worker's location.
WorkerLocation.toString()
Returns a string containing the serialized URL
for the worker's location. It is a synonym for WorkerLocation.href
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4