Kasp3r Ghost
Kasp3r Ghost

Reputation: 21

how to open link in internet explorer using html or any browser language?

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.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>

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.

Upvotes: 0

Views: 11495

Answers (2)

pjones235
pjones235

Reputation: 540

While there isn't an existing protocol handler for IE, you can easily create one: https://learn.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/platform-apis/aa767914(v=vs.85)

Upvotes: 0

Adrian
Adrian

Reputation: 8597

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.

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.

Upvotes: 4

Related Questions