Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org

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>

Document Tags and Contributors

 Contributors to this page: Sheppy, trevorh, Domingos Savio Salvador, Fredchat, Rod Whiteley
 Last updated by: Sheppy,