opera.postError()
From Opera 15 onward, Opera 11 & 12’s extension format is no longer supported, and instead, we’ve switched to Chromium’s extension model. Check out our new documentation for developing extensions for Opera 15 and higher and start building your own extensions.
Description:
Makes a given text string appear in the Error Console. Helpful for debugging.
Parameters:
String
: Any string. An array will be converted into a string.
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));
This article is licensed under a Creative Commons Attribution 3.0 Unported license.
Comments