Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

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,
     'https://wildskins/newblue.xpi',
     'newblue/1.0');">
Install the New Blue theme</a>

Document Tags and Contributors

 Last updated by: Sheppy,