The SharedWorkerGlobalScope object (the web.SharedWorker global
is accessible through the web.self keyword. Some additional
functions, namespaces objects, and constructors, not typically
with the worker global scope, but available on it, are listed
the JavaScript Reference. See the complete list of functions
to workers.
The SharedWorkerGlobalScope object (the `web.SharedWorker` global is accessible through the `web.self` keyword. Some additional functions, namespaces objects, and constructors, not typically with the worker global scope, but available on it, are listed the JavaScript Reference. See the complete list of functions to workers.
(application-cache this)Property.
The applicationCache read-only property of the web.SharedWorkerGlobalScope
returns the web.ApplicationCache object for the worker (see
the application cache).
var nameObj = self.applicationCache;
See also: https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/applicationCache
Property. The applicationCache read-only property of the `web.SharedWorkerGlobalScope` returns the `web.ApplicationCache` object for the worker (see the application cache). `var nameObj = self.applicationCache;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/applicationCache`
(close this)Method.
The close() method of the web.SharedWorkerGlobalScope interface
any tasks queued in the SharedWorkerGlobalScope's event loop,
closing this particular scope.
self.close();
See also: https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/close
Method. The close() method of the `web.SharedWorkerGlobalScope` interface any tasks queued in the SharedWorkerGlobalScope's event loop, closing this particular scope. `self.close();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/close`
(console this)Property.
The console read-only property of the web.WorkerGlobalScope
returns a web.Console object providing access to the browser
for the worker.
var consoleObj = self.console;
See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/console
Property. The console read-only property of the `web.WorkerGlobalScope` returns a `web.Console` object providing access to the browser for the worker. `var consoleObj = self.console;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/console`
(dump this & args)Method.
The dump() method of the web.WorkerGlobalScope interface allows
to write a message to stdout — i.e. in your terminal, in Firefox
This is the same as Firefox's web.window.dump, but for workers.
dump('My message\\n');
See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/dump
Method.
The dump() method of the `web.WorkerGlobalScope` interface allows
to write a message to stdout — i.e. in your terminal, in Firefox
This is the same as Firefox's `web.window.dump`, but for workers.
`dump('My message\\n');`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/dump`(import-scripts this & args)Method.
The importScripts() method of the web.WorkerGlobalScope interface
imports one or more scripts into the worker's scope.
self.importScripts('foo.js'); self.importScripts('foo.js', 'bar.js', ...);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts
Method.
The importScripts() method of the `web.WorkerGlobalScope` interface
imports one or more scripts into the worker's scope.
`self.importScripts('foo.js');
self.importScripts('foo.js', 'bar.js', ...);`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts`(location this)Property.
The location read-only property of the web.WorkerGlobalScope
returns the web.WorkerLocation associated with the worker.
is a specific location object, mostly a subset of the web.Location
browsing scopes, but adapted to workers.
var locationObj = self.location;
See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/location
Property. The location read-only property of the `web.WorkerGlobalScope` returns the `web.WorkerLocation` associated with the worker. is a specific location object, mostly a subset of the `web.Location` browsing scopes, but adapted to workers. `var locationObj = self.location;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/location`
(name this)Property.
The name read-only property of the web.SharedWorkerGlobalScope
returns the name that the web.SharedWorker was (optionally)
when it was created. This is the name that the web.SharedWorker()
can pass to get a reference to the web.SharedWorkerGlobalScope.
var nameObj = self.name;
See also: https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/name
Property. The name read-only property of the `web.SharedWorkerGlobalScope` returns the name that the `web.SharedWorker` was (optionally) when it was created. This is the name that the `web.SharedWorker()` can pass to get a reference to the `web.SharedWorkerGlobalScope`. `var nameObj = self.name;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/name`
(navigator this)Property.
The navigator read-only property of the web.WorkerGlobalScope
returns the web.WorkerNavigator associated with the worker.
is a specific navigator object, mostly a subset of the web.Navigator
browsing scopes, but adapted to workers.
var navigatorObj = self.navigator;
See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/navigator
Property. The navigator read-only property of the `web.WorkerGlobalScope` returns the `web.WorkerNavigator` associated with the worker. is a specific navigator object, mostly a subset of the `web.Navigator` browsing scopes, but adapted to workers. `var navigatorObj = self.navigator;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/navigator`
(onconnect this)Property.
The onconnect property of the web.SharedWorkerGlobalScope interface
an event handler representing the code to be called when the
event is raised — that is, when a web.MessagePort connection
opened between the associated web.SharedWorker and the main
onconnect = function() { ... };
See also: https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/onconnect
Property.
The onconnect property of the `web.SharedWorkerGlobalScope` interface
an event handler representing the code to be called when the
event is raised — that is, when a `web.MessagePort` connection
opened between the associated `web.SharedWorker` and the main
`onconnect = function() { ... };`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/onconnect`(performance this)Property.
The performance read-only property of the web.WorkerGlobalScope
returns a performance.Performance object to be used on the
var perfObj = self.performance;
See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/performance
Property. The performance read-only property of the `web.WorkerGlobalScope` returns a `performance.Performance` object to be used on the `var perfObj = self.performance;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/performance`
(self this)Property.
The self read-only property of the web.WorkerGlobalScope interface
a reference to the WorkerGlobalScope itself. Most of the time
is a specific scope like web.DedicatedWorkerGlobalScope, web.SharedWorkerGlobalScope,
web.ServiceWorkerGlobalScope.
var selfRef = self;
See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/self
Property. The self read-only property of the `web.WorkerGlobalScope` interface a reference to the WorkerGlobalScope itself. Most of the time is a specific scope like `web.DedicatedWorkerGlobalScope`, `web.SharedWorkerGlobalScope`, `web.ServiceWorkerGlobalScope`. `var selfRef = self;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/self`
(set-application-cache! this val)Property.
The applicationCache read-only property of the web.SharedWorkerGlobalScope
returns the web.ApplicationCache object for the worker (see
the application cache).
var nameObj = self.applicationCache;
See also: https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/applicationCache
Property. The applicationCache read-only property of the `web.SharedWorkerGlobalScope` returns the `web.ApplicationCache` object for the worker (see the application cache). `var nameObj = self.applicationCache;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/applicationCache`
(set-location! this val)Property.
The location read-only property of the web.WorkerGlobalScope
returns the web.WorkerLocation associated with the worker.
is a specific location object, mostly a subset of the web.Location
browsing scopes, but adapted to workers.
var locationObj = self.location;
See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/location
Property. The location read-only property of the `web.WorkerGlobalScope` returns the `web.WorkerLocation` associated with the worker. is a specific location object, mostly a subset of the `web.Location` browsing scopes, but adapted to workers. `var locationObj = self.location;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/location`
(set-name! this val)Property.
The name read-only property of the web.SharedWorkerGlobalScope
returns the name that the web.SharedWorker was (optionally)
when it was created. This is the name that the web.SharedWorker()
can pass to get a reference to the web.SharedWorkerGlobalScope.
var nameObj = self.name;
See also: https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/name
Property. The name read-only property of the `web.SharedWorkerGlobalScope` returns the name that the `web.SharedWorker` was (optionally) when it was created. This is the name that the `web.SharedWorker()` can pass to get a reference to the `web.SharedWorkerGlobalScope`. `var nameObj = self.name;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/name`
(set-navigator! this val)Property.
The navigator read-only property of the web.WorkerGlobalScope
returns the web.WorkerNavigator associated with the worker.
is a specific navigator object, mostly a subset of the web.Navigator
browsing scopes, but adapted to workers.
var navigatorObj = self.navigator;
See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/navigator
Property. The navigator read-only property of the `web.WorkerGlobalScope` returns the `web.WorkerNavigator` associated with the worker. is a specific navigator object, mostly a subset of the `web.Navigator` browsing scopes, but adapted to workers. `var navigatorObj = self.navigator;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/navigator`
(set-onconnect! this val)Property.
The onconnect property of the web.SharedWorkerGlobalScope interface
an event handler representing the code to be called when the
event is raised — that is, when a web.MessagePort connection
opened between the associated web.SharedWorker and the main
onconnect = function() { ... };
See also: https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/onconnect
Property.
The onconnect property of the `web.SharedWorkerGlobalScope` interface
an event handler representing the code to be called when the
event is raised — that is, when a `web.MessagePort` connection
opened between the associated `web.SharedWorker` and the main
`onconnect = function() { ... };`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/onconnect`(set-self! this val)Property.
The self read-only property of the web.WorkerGlobalScope interface
a reference to the WorkerGlobalScope itself. Most of the time
is a specific scope like web.DedicatedWorkerGlobalScope, web.SharedWorkerGlobalScope,
web.ServiceWorkerGlobalScope.
var selfRef = self;
See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/self
Property. The self read-only property of the `web.WorkerGlobalScope` interface a reference to the WorkerGlobalScope itself. Most of the time is a specific scope like `web.DedicatedWorkerGlobalScope`, `web.SharedWorkerGlobalScope`, `web.ServiceWorkerGlobalScope`. `var selfRef = self;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/self`
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |