Mozilla.com

  1. MDC
  2. Main Page
  3. XPInstall API Reference
  4. Examples
  5. InstallTrigger.installChrome

InstallTrigger.installChrome

Trigger scripts are typically invoked by JavaScript event handlers on hyperlinks. When a user clicks the link "Install the New Blue theme" in the example below, XPInstall downloads, registers, and installs the theme contained in newblue.xpi to the user's profile directory.

<a href="#"
  onclick="InstallTrigger.installChrome(
     InstallTrigger.SKIN,
     'http://wildskins/newblue.xpi',
     'newblue/1.0');">
Install the New Blue theme</a>
Languages

Page last modified 08:34, 9 Apr 2007 by Fredchat

Tags:

Files (0)