"C #" URL Protocol
The Web page calls the local program, supports all browsers under Windows, compared with the browser plug-in implementation is simple, but to determine whether the call succeeds, only ie10 above has functions, other browsers have to implement (with IFRAME)
Realize:
1. Write to the registry, in the following form
5.00 [Hkey_classes_root\regname] --Regname The Custom registry key name "URL Protocol"= "" [hkey_classes_root\regname\defaulticon]@="icopath"[HKEY_ Classes_root\regname\shell][hkey_classes_root\regname\shell\open][hkey_classes_root\regname\shell\open\command ]@="filePath \"%1\""--filePath Local program path,%1 writes dead for parameter
2. JS Call
// support IE 10 or above function OpenForIe10 (para) { var"regname:\\"+para; Navigator.mslaunchuri (Message, function () { alert ('success' ) ); Call succeeded }, function () { alert ('failed');//call failed } );}
"C #" URL Protocol