You can install a Mozilla Firefox extension two ways. First, if you have a .xpi file (a zip'ed, pre-packaged Firefox extension file), you can simply launch Firefox then select "File->Open File". Select the XPI, and click Open. This will kick off the extension installation in the browser. This is neat, but it isn't as exciting as letting a user install your Firefox extension with a single "click here to install" link, like the Mozilla Firefox Add-ons portal. So, a second option is to write up some slick JavaScript to call InstallTrigger.install() which triggers the Firefox extension installation. Of course, there's no better way to do this than with jQuery.
Using jQuery to trigger the Mozilla Firefox extension installer is a snap. You can find a demo, the JavaScript code, and other details here. Enjoy.


Did you find this post helpful, or at least, interesting?