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 tried this i-explorer:
<a class="ms-link c-call-to-action c-glyph edgedownload" aria-label="Try Microsoft Edge" href="Microsoft-edge:/?FORM=MK12CD&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>
This code open the link in microsoft edge but I want to open it on internet explorer I've taken this code from this . 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.
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 tried this i-explorer:https://www.google.
<a class="ms-link c-call-to-action c-glyph edgedownload" aria-label="Try Microsoft Edge" href="Microsoft-edge:https://microsoftedgewele.microsoft./?FORM=MK12CD&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>
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./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.
Share Improve this question edited Dec 28, 2018 at 14:44 DaFois 2,2238 gold badges28 silver badges47 bronze badges asked Dec 28, 2018 at 12:11 Kasp3r GhostKasp3r Ghost 211 gold badge1 silver badge2 bronze badges 3- 1 No that’s not possible. – James Commented Dec 28, 2018 at 12:20
- Possible duplicate of Can I force a link to open in a specific browser? – Daniel Vercouteren Commented Dec 28, 2018 at 12:20
- thanks but you see in microsoft./en-gb/windows/microsoft-edge it's open microsoft edge so why I cant use the method on iexplorer please any body can tell me – Kasp3r Ghost Commented Dec 28, 2018 at 12:28
2 Answers
Reset to default 4The 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.
For example:
Skypes protocol handler would be:
<a href="skype:dordotky?userinfo">Skype</a>
Sadly, IE does not have one.
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.
While there isn't an existing protocol handler for IE, you can easily create one: https://learn.microsoft./en-us/previous-versions/windows/internet-explorer/ie-developer/platform-apis/aa767914(v=vs.85)
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744346520a4569717.html
评论列表(0条)