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 method removes a listener from receiving an event.
type
: This is the type of event; allowed values are: 'message'
, 'disconnect'
, and 'connect'
.eventListener
: This is the function to be removed.useCapture
: This is boolean, keep false
for now; note, this value currently has no purpose.void removeEventListener (<DOMString> type, eventListerner, <boolean> useCapture)
//
// The background process ('/background.js').
//
// Add event listener for the 'message' event
opera.extension.addEventListener('message', function(event) {
var message = event.data;
}, false);
// Remove the event listener
opera.extension.removeEventListener('message', function() {}, false);