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;
};
This article is licensed under a Creative Commons Attribution 3.0 Unported license.
Comments
You must be logged in to write a comment. If you're not a registered member, please sign up.