global scope) is accessible through the
keyword. Some additional global functions, namespaces objects, and constructors, not typically associated with the worker global scope, but available on it, are listed in the
. See the complete list of
functions available to workers
SharedWorkerwas (optionally) given when it was created using the
SharedWorker()constructor. This is mainly useful for debugging purposes.
ApplicationCacheobject for the worker (see Using the application cache ).
Consoleassociated with the worker.
WorkerLocationassociated with the worker.
WorkerLocationis a specific location object, mostly a subset of the
Locationfor browsing scopes, but adapted to workers.
WorkerNavigatorassociated with the worker.
WorkerNavigatoris a specific navigator object, mostly a subset of the
Navigatorfor browsing scopes, but adapted to workers.
Performanceobject associated with the worker, which is a regular performance object, but with a subset of its properties and methods available.
This interface inherits event handlers from the
interface, and its parent
, and therefore implements event handlers from
EventHandlerrepresenting the code to be called when the
connectevent is raised — that is, when a
MessagePortconnection is opened between the associated
SharedWorkerand the main thread.
SharedWorkerGlobalScope's event loop, effectively closing this particular scope.
WorkerGlobalScope's event loop, effectively closing this particular scope.
window.dump, but for workers.
Listen to this event using
HTML Living Standard
The definition of 'SharedWorkerGlobalScope' in that specification.