« Documentation Home

widget.version

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 readonly attribute corresponds to the widget element's version attribute in the configuration document, if one was declared. Otherwise, it will return an empty string.

Example:

//
// Any extension script (e.g. /background.js)
//

// Returns the version of the widget, as declared in config.xml
var version = widget.version;