簡體   English   中英

在IE中使用JavaScript的Windows中可以使用任何檢測URI模式的方法

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM