widget.id
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:
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.
Example:
//
// Any extension script (e.g. /background.js)
//
// Returns the widget's id, as declared in config.xml
var id = widget.id;
This article is licensed under a Creative Commons Attribution 3.0 Unported license.
Comments