如何使用html或任何浏览器语言在Internet Explorer中打开链接? [英] how to open link in internet explorer using html or any browser language?

查看:147
本文介绍了如何使用html或任何浏览器语言在Internet Explorer中打开链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个新项目,我需要在Chrome浏览器或Firefox中使用任何浏览器语言通过单击按钮打开资源管理器中的链接. 我搜了很多东西,发现了这段代码

I'm working on a new project and I need to open a link in Explorer with a click on button from Chrome or Firefox using any browser language. I have search a lot and I found this code

我尝试了这个i-explorer:https://www.google.com

<a class="mscom-link c-call-to-action c-glyph edgedownload" aria-label="Try Microsoft Edge" href="Microsoft-edge:https://microsoftedgewelcome.microsoft.com/?FORM=MK12CD&amp;wt.mc_id=MK12CD" data-bi-name="try now" data-bi-id="n1c1m1r1a3" data-bi-type="text" data-bi-bhvr="TRIALSINITATE"><span class="x-hidden-focus">TRY NOW</span></a>

此代码在Microsoft Edge中打开链接,但我想在Internet Explorer中打开该链接,我已从此

This code open the link in microsoft edge but I want to open it on internet explorer I've taken this code from this https://www.microsoft.com/en-gb/windows/microsoft-edge. You can try to open microsoft edge. Please don't tell me to use extensions I know that. I think it's possible to do that. Thanks alot.

推荐答案

没有插件的唯一方法是将协议处理程序添加到计算机上的注册表中. Edge可以立即使用它,因为它包含一个-就像任何其他能够打开指向特定应用程序的链接的应用程序一样(例如Skype和Steam).

The only way to do it without a plugin would be to add a protocol handler to the registry on your machine. Edge does it out of the box because it contains one - just like any other application that is capable of opening links to specific applications, (Skype and Steam for example).

显然,将其添加到您的计算机上不会分发到其他计算机上,并且无法从网页上实现.

Obviously adding it onto your machine won't distribute onto other machines and this cannot be achieved from a web page.

例如:

Skypes协议处理程序为:

Skypes protocol handler would be:

<a href="skype:dordotky?userinfo">Skype</a>

可悲的是,IE没有一个.

Sadly, IE does not have one.

如果要查看协议-您可以在RegEdit-中的HKEY_CLASSES_ROOT下找到它们.例如,边缘边缘将位于microsoft-edge文件夹下,并且您要打开标题为"URL协议"的字符串选项.您会在上述密钥内找到系统上所有可用的协议.

If you want to view the protocols - you'll find them in RegEdit- under HKEY_CLASSES_ROOT. For example the edge one will be under microsoft-edge folder, and you want to open the String option titled "URL Protocol". You'll find all available protocols on your system inside the key mentioned above.

这篇关于如何使用html或任何浏览器语言在Internet Explorer中打开链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆