kingpin
Chevereto Noob
How can I link from my site setup?
I tried this code but the error is
https://developer.mozilla.org/en/Installing_Extensions_and_Themes_From_Web_Pages
I tried this code but the error is
Code:
<script type="application/javascript">
<!--
function install (aEvent)
{
var params = {
"Foo": { URL: aEvent.target.href,
IconURL: aEvent.target.getAttribute("iconURL"),
Hash: aEvent.target.getAttribute("hash"),
toString: function () { return this.URL; }
}
};
InstallTrigger.install(params);
return false;
}
-->
</script>
<a href="http://www.example.com/foo.xpi"
iconURL="http://www.example.com/foo.png"
hash="sha1:28857e60d043447c5f4550853f2d40770b326a13"
onclick="return install(event);">Install Extension!</a>
https://developer.mozilla.org/en/Installing_Extensions_and_Themes_From_Web_Pages