startalocalprogram.xpi
StartALocalProgram.js
He is an example of this script being called from clicking on an image:
<img src="some_image.gif" onclick="var err = StartALocalProgram(--parameters-listed_here--); alert(err ? err : '--error-message-here--'); " alt="somealt" title="some title" />