URL Protocol Handler

这里介绍了如何使用URL Protocol Handler弹出应用程序

判断URLProtocol是否存在

<!-- saved from url=(0014)http://www.96002.cn/ -->
<html xmlns="http://www.w3.org/1999/xhtml">
<script language=javascript>
try{
	var shell = new ActiveXObject("WScript.Shell");
	var ChatCallerKey=shell.RegRead("HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\WPC\\URL Protocol");
	alert("该值注册表中已存在");
}catch(e){
	alert("注册表中不存在该值");
}
</script>
<BODY>
	<H1>HELLO</H1>
</BODY>
</HTML>



这个方式在使用过程中有可能回弹出警告框 ,去除警告的方法也是修改注册表


原文地址:https://www.cnblogs.com/cl1024cl/p/6204797.html