widget.id

By Opera Software

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

No new comments accepted.