Global Index
HTML5 JS API Index
>
Web Workers
Tutorials & Specs
Worker
Extends
EventTarget
. Implements
AbstractWorker
.
Properties
EventHandler
onerror
EventHandler
onmessage
Constructor
Worker(DOMString scriptURL)
Operations
void
postMessage
(any message, optional sequence<Transferable> transfer)
The postMessage() method on Worker objects must act as if, when invoked, it immediately invoked the method of the same name on the port, with the same arguments, and returned the same return value.
void
terminate
()
The terminate() method, when invoked, must cause the "terminate a worker" algorithm to be run on the worker with which the object is associated.