opera.contexts.speeddial.url

By Opera Software

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:

Represents the target URL of the Speed Dial cell when clicked or otherwise activated. This can be either an external page or a local file within the extension. If not specified, the default value is the feature request's param element whose name attribute is url (specified in the extension's config.xml file).

Example:

//
// The background process ('/background.js').
//

// First check the opera.contexts.speeddial object is available
if (opera.contexts.speeddial) {
  var sd = opera.contexts.speeddial;

  // Set the Speed Dial target to a local file
  sd.url = "about.html";
}

This article is licensed under a Creative Commons Attribution 3.0 Unported license.

Comments

  • photo

    m-29

    Thursday, January 24, 2013

    Why this is not available at options page? It raises "TypeError: Cannot convert 'opera.contexts' to object".

    Opera 12.12 WinXP SP3
No new comments accepted.