[英]Any way to detect URI schema is available in windows using JavaScript in IE
我找到了幾種方法來檢測Firefox和Chrome瀏覽器的窗口支持當前URI方案,如果應用程序未注冊,我將下載並注冊這些應用程序uri
鉻
var appWindow = window.open('alert:"Hello%20World"',"_self");
if(appWindow!=null){alert("it is worked")}
火狐
$("body").append('<span id="__protoProxy"></span>');
function queryWord(aWord)
{
var protoProxy = document.getElementById('__protoProxy');
if (protoProxy)
{
var word = aWord.replace('"','\"');
protoProxy.innerHTML = '<div style="display:none;"><iframe id="iframe01" src="alert://'+ word + '"></iframe></div>';
}
}
queryWord('hello world');
if(document.getElementById('iframe01').contentDocument.body.innerHTML!=""){alert("it is worked")}
IE
但在IE中我無法執行此操作,即使URI未在Windows中注冊,IE打開窗口從Windows商店中選擇應用程序。
有沒有辦法在IE中檢測?
是否有任何方法可以在所有瀏覽器中檢測到它?
Citrix發射器如何在所有瀏覽器中運行?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.