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 readonly attribute corresponds to the widget
element's id
attribute in the configuration document, if one was declared. Otherwise, it will return an empty string.
//
// Any extension script (e.g. /background.js)
//
// Returns the widget's id, as declared in config.xml
var id = widget.id;