« Documentation Home

opera.extension.removeEventListener()

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.

Description:

This method removes a listener from receiving an event.

Parameters:

Syntax:

void removeEventListener (<DOMString> type, eventListerner, <boolean> useCapture)

Example:

//
// 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);