onmessage
Summary
An event listener to be called when a message is received from the worker.
Property of apis/workers/Workerapis/workers/Worker
Syntax
Note: This property is read-only.
var result = object.onmessage;
Return Value
Returns an object of type
EventHandler
Related specifications
- W3C Web Workers Specification
- W3C Editor’s Draft
Attributions
Microsoft Developer Network: Windows Internet Explorer API reference Article