opera.contexts.speeddial.url

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

You must be logged in to write a comment. If you're not a registered member, please sign up.