Launch IE from a link in Chrome

2019-02-10 17:09发布

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.

4条回答
放我归山
2楼-- · 2019-02-10 17:19

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>
查看更多
乱世女痞
3楼-- · 2019-02-10 17:27

Building on the responses from @topcat3 and @danieln above, I tweaked the solution to get rid of the annoying lingering DOS window. Here's what works nicely for me:

HKEY_CLASSES_ROOT
    alert
    (Default) = "URL:Alert Protocol"
    URL Protocol = ""
    DefaultIcon
        (Default) = "iexplore.exe,1"
    shell
        open
            command
                (Default) = cmd /v /k set "myvar=%1" & set myvar=!myvar:alert:=! & start "" /B "!ProgramFiles!\Internet Explorer\iexplore.exe" !myvar! & exit
查看更多
聊天终结者
4楼-- · 2019-02-10 17:28

Great solution @topcat3! To fix it for IE11, the link must contain https:// or http://:

<a href="alert:https://www.google.com">open google in IE</a>

And I tweaked the registry command with the ProgramFiles variable:

cmd /k set myvar=%1 & call set myvar=%%myvar:alert:=%% & call "%%ProgramFiles%%\Internet Explorer\iexplore.exe" %%myvar%% & exit /B
查看更多
闹够了就滚
5楼-- · 2019-02-10 17:37

You can use ie-tab for chrome. It invokes an IE frame inside your chrome browser. Worked good for me.

查看更多
登录 后发表回答