Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Launch IE from a link in Chrome

I want to have a link in Chrome e.g.

Open Link

that when you click on it in the Chrome Browser that it launches the link in an IE window.

Can anyone explain how to do this. I believe it is possible and may involve adding some settings in the registry

ps: I can't use any browser extension e.g. IETab or any of this. It has to launch the IE on the machine.

like image 756
topcat3 Avatar asked Feb 26 '15 13:02

topcat3


People also ask

How do I force a link to open in Internet Explorer?

Simply right-click the link you need to run in IE, and select it the IE mode tab option seen in the following screenshot. Once you've opened an IE tab, you'll get a prompt that allows you to always open that particular URL in IE mode.


2 Answers

Ok so I did the following which works :

HKEY_CLASSES_ROOT
   alert
      (Default) = "URL:Alert Protocol"
      URL Protocol = ""
      DefaultIcon
         (Default) = "iexplore.exe,1"
      shell
         open
            command
               (Default) = cmd /k set myvar=%1 & call set myvar=%%myvar:alert:=%% & call "C:\Program Files (x86)\Internet Explorer\iexplore.exe" %%myvar%% & exit /B

Then have your link

<a href="alert:www.google.ie">link</a>
like image 124
topcat3 Avatar answered Oct 22 '22 13:10

topcat3


All answers above mention HKEY_CLASSES_ROOT, but how do we use it? Where to use it? It is not mentioned.

But now I have the solution please follow the below steps.

  1. Open New Notepad and Paste below code in Notepad
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\iehttp]
@="URL:Open with IE Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\iehttp\shell]
[HKEY_CLASSES_ROOT\iehttp\shell\open]
[HKEY_CLASSES_ROOT\iehttp\shell\open\command]
@="cmd /V /C \"set URL=%1&& set URL=!URL:iehttp=http!&&cmd /c \"\"C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe\"\" !URL!\""
  1. Ctrl + s
  2. Give Name like: iphttp.reg + Save in desktop
  3. After that double click on iphttp.reg file from the desktop, first popup click on Yes

Done from the Registry side no need to refresh or restart the computer. It will give two links for testing:

 <a href="http://www.google.com" target="_blank">Open Same Browser</a>
 <a href="iehttp://www.google.com">Open With IE</a>

That's IT. It is working fine now.

Limitation: from Jquery, Javascript it's not working as per my understanding.

like image 20
vishal joshi Avatar answered Oct 22 '22 11:10

vishal joshi