This documentation relates to Opera's now deprecated .oex Extension API framework for Opera versions <= 12.15 and also provided by our OEX2NEX shim library.
For the latest Opera Extensions API documentation for Opera versions > 12.15 please consult the latest Opera Extensions API documentation online.
This event listener is invoked when an injected script, popup, or preferences environment is created that enables communication. The event's source (event.source
) is a messagePort
to the connecting environment. The following function will execute when a preferences page is opened, for example.
//
// The background process ('/background.js').
//
opera.extension.onconnect = function(event) {
var connected = true;
};