Results 121 - 140 of 164

WindowTimers

WindowTimers is a mixin used to provide utility methods which set and clear timers. No objects of this type exist; instead, its methods are available on Window for the standard browsing scope, or on WorkerGlobalScope for workers.
API HTML DOM Interface Intervals Mixin Reference Timers Workers

Worker.onmessage

The onmessage property of the Worker interface represents an EventHandler, that is a function to be called when the message event occurs. These events are of type MessageEvent and will be called when the worker's parent receives a message (i.e. from the DedicatedWorkerGlobalScope.postMessage method.
API EventHandler onmessage Property Reference Référence Web Workers Worker

Worker.postMessage()

The postMessage() method of the Worker interface sends a message to the worker's inner scope. This accepts a single parameter, which is the data to send to the worker. The data may be any value or JavaScript object handled by the structured clone algorithm, which includes cyclical references.
API JavaScript Method postMessage Reference Référence Web Workers Worker

Worker.terminate()

The terminate() method of the Worker interface immediately terminates the Worker. This does not offer the worker an opportunity to finish its operations; it is simply stopped at once.
API Method Reference Référence terminate Web Workers Worker

WorkerGlobalScope.close()

The close() method of the WorkerGlobalScope interface discards any tasks queued in the WorkerGlobalScope's event loop, effectively closing this particular scope.
API close Method Reference Référence Web Workers WorkerGlobalScope

WorkerGlobalScope.importScripts()

The importScripts() method of the WorkerGlobalScope interface synchronously imports one or more scripts into the worker's scope.
API importScripts Method Reference Référence Web Workers WorkerGlobalScope

WorkerGlobalScope.location

The location read-only property of the WorkerGlobalScope interface returns the WorkerLocation associated with the worker. It is a specific location object, mostly a subset of the Location for browsing scopes, but adapted to workers.
API Location Property Reference Référence Web Workers WorkerGlobalScope

WorkerGlobalScope.navigator

The navigator read-only property of the WorkerGlobalScope interface returns the WorkerNavigator associated with the worker. It is a specific navigator object, mostly a subset of the Navigator for browsing scopes, but adapted to workers.
API Navigator Property Reference Référence Web Workers WorkerGlobalScope

WorkerGlobalScope.onclose

The onclose property of the WorkerGlobalScope interface represents an EventHandler to be called when the close event occurs and bubbles through the Worker.
API onclose Property Reference Référence Web Workers WorkerGlobalScope

WorkerGlobalScope.onerror

The onerror property of the WorkerGlobalScope interface represents an EventHandler to be called when the error event occurs and bubbles through the Worker.
API EventHandler onerror Property Reference Référence Web Workers WorkerGlobalScope

WorkerGlobalScope.onlanguagechange

The onlanguagechange property of the WorkerGlobalScope interface represents an EventHandler to be called when the languagechange event occurs and bubbles through the Worker.
API onlanguagechange Property Reference Référence Web Workers WorkerGlobalScope

WorkerGlobalScope.onoffline

The onoffline property of the WorkerGlobalScope interface represents an EventHandler to be called when the offline event occurs and bubbles through the Worker.
API onoffline Property Reference Référence Web Workers WorkerGlobalScope

WorkerGlobalScope.ononline

The ononline property of the WorkerGlobalScope interface represents an EventHandler to be called when the online event occurs and bubbles through the Worker.
API ononline Property Reference Référence Web Workers WorkerGlobalScope

WorkerGlobalScope.self

The self read-only property of the WorkerGlobalScope interface returns a reference to the WorkerGlobalScope itself. Most of the time it is a specific scope like DedicatedWorkerGlobalScopeSharedWorkerGlobalScope, or ServiceWorkerGlobalScope.
API Property Reference Référence self Web Workers WorkerGlobalScope