<a onclick="doMyfile();" .../>
> handler for this (javascript function), is it possible?
If just wanna open it as you dblclick it in the OS shell. You just
need a script to run the nsIFile.
Such as
function doMyfile() {
var file = Components.classes["@mozilla.org/file/local;
1"]
.createInstance
(Components.interfaces.nsILocalFile);
file.initWithPath("C:\\Program Files\\...\
\notepad.exe");
file.launch();
}
Else please refer to
MSDN:http://msdn.microsoft.com/en-us/library/aa767914(VS.85).aspx
The following refs are from Mozilla
1:http://kb.mozillazine.org/Register_protocol
2:http://kb.mozillazine.org/Talk:Register_protocol
3:https://developer.mozilla.org/en/Web-based_protocol_handlers
4:http://support.mozilla.com/en-US/kb/The+protocol+is+not+associated
+with+any+program