« Documentation Home

opera.postError()

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:

Makes a given text string appear in the Error Console. Helpful for debugging.

Parameters:

Syntax:

void postError (<DOMString> string)

Example:

// Print a simple string to the error console
// Outputs: Hello, world!
opera.postError('Hello, world!');

// Print an object to the error console
// Outputs: {"banana":"yellow","strawberry":"red"}
var obj = {
  'banana' : 'yellow',
  'strawberry' : 'red'
};
opera.postError(JSON.stringify(obj));