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.startSoftwareUpdate

InstallTrigger.startSoftwareUpdate

This is a very simple example of the InstallTrigger object's principal method, startSoftwareUpdate, which takes a string representing the path to the XPI and installs that XPI on the local machine.

function triggerURL(url)
{
   InstallTrigger.startSoftwareUpdtate(url);
}
// get the url to the .xpi from either a form
// or text field entry. Then do:
... onclick="triggerURL(this.form.url.value);

Document Tags and Contributors

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