opera.extension.onmessage
Description:
This event listener is invoked when a message is received from an injected script, popup or preferences page. The event's source is a messagePort to the connecting environment.
Example:
//
// The background process ('/background.js').
//
opera.extension.onmessage = function(event) {
// Get the message content from the event's data property
var message = event.data;
};About this article
| Published in | Dev.Opera |
|---|---|
| Date | December 6, 2011 |
| Author | Opera Software |
| Tags | extensions API, messaging |
| Original | Internet Archive |