Experimental
This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The onmessage
property of the
WindowEventHandlers
mixin is the EventHandler
called
whenever an object receives a message
event.
Syntax
window.addEventListener('message', function(event) { ... })
window.onmessage = function(event) { ... }
Specifications
Specification | Status | Comment |
---|---|---|
HTML Living Standard The definition of 'onmessage' in that specification. |
Living Standard | Initial definition. |
Browser compatibility
BCD tables only load in the browser