从 Chrome 中的 link 启动 IE
Launch IE from a link in Chrome
我想在 Chrome 中有一个 link,例如
当您在 Chrome 浏览器中单击它时,它会在 IE window 中启动 link。
谁能解释一下如何做到这一点。我相信这是可能的,并且可能涉及在注册表中添加一些设置
ps:我无法使用任何浏览器扩展,例如IETab 或其中任何一个。它必须在机器上启动 IE。
好的,所以我做了以下工作:
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
然后让你的link
<a href="alert:www.google.ie">link</a>
很好的解决方案@topcat3!
要针对 IE11 修复它,link 必须包含 https:// 或 http://:
<a href="alert:https://www.google.com">open google in IE</a>
我用 ProgramFiles 变量调整了注册表命令:
cmd /k set myvar=%1 & call set myvar=%%myvar:alert:=%% & call "%%ProgramFiles%%\Internet Explorer\iexplore.exe" %%myvar%% & exit /B
您可以将 ie-tab 用于 chrome。它会在您的 chrome 浏览器中调用一个 IE 框架。对我很有用。
根据上面@topcat3 和@danieln 的回复,我调整了解决方案以摆脱烦人的挥之不去的 DOS window。以下是适合我的方法:
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
上面来自@topcat3 的简化解决方案并使其在 Win10 上运行。
HKEY_CLASSES_ROOT
alert
(Default) = "URL:Alert Protocol"
URL Protocol = ""
DefaultIcon
(Default) = "iexplore.exe,1"
shell
open
command
(Default) = cmd /V /C set "arg1=%1" & set arg1=!arg1:alert:=! & "!ProgramFiles(x86)!\Internet Explorer\iexplore.exe" !arg1!
从 Chrome 74 开始,chrome 内置了对旧版浏览器的支持 (LBS)。该行为满足您描述的需求,即(双关语)某些 URL 在新的 Internet Exploder window 中打开,而不是在 Chrome.
中的选项卡中打开
来自 Google 的 official site on LBS:
As an administrator, you can automatically switch users between Chrome Browser and another browser. Deploy Legacy Browser Support (LBS) and use policies to specify which URLs open in an alternative browser. For example, you can ensure that browser visits to the internet use Chrome Browser, but visits to your organization’s intranet use Internet Explorer®.
对于Chrome(≤73)的旧版本,需要单独安装,即“旧版浏览器支持扩展”。 P.S。这个问题明确排除了浏览器扩展,但原因似乎是点击 link 应该打开一个单独的 IE window.
上面的所有答案都提到了HKEY_CLASSES_ROOT
,但是我们如何使用它呢?在哪里使用?没有提到。
但现在我有了解决方案,请按照以下步骤操作。
- 打开新记事本并在记事本中粘贴以下代码
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!\""
- Ctrl + s
- 像这样命名:
iphttp.reg
+ 保存在桌面
- 从桌面双击
iphttp.reg
文件后,首先弹出单击是
从注册表端完成,无需刷新或重新启动计算机。它会给出两个测试链接:
<a href="http://www.google.com" target="_blank">Open Same Browser</a>
<a href="iehttp://www.google.com">Open With IE</a>
就是这样。现在一切正常。
限制:从 Jquery,Javascript 根据我的理解,它不工作。
您可以使用以下为 IE 的 ftp 链接调整的代码。
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=ftp!&&cmd /c \"\"C:\Program Files (x86)\Internet Explorer\iexplore.exe\"\" !URL!\""
我想在 Chrome 中有一个 link,例如
当您在 Chrome 浏览器中单击它时,它会在 IE window 中启动 link。
谁能解释一下如何做到这一点。我相信这是可能的,并且可能涉及在注册表中添加一些设置
ps:我无法使用任何浏览器扩展,例如IETab 或其中任何一个。它必须在机器上启动 IE。
好的,所以我做了以下工作:
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
然后让你的link
<a href="alert:www.google.ie">link</a>
很好的解决方案@topcat3! 要针对 IE11 修复它,link 必须包含 https:// 或 http://:
<a href="alert:https://www.google.com">open google in IE</a>
我用 ProgramFiles 变量调整了注册表命令:
cmd /k set myvar=%1 & call set myvar=%%myvar:alert:=%% & call "%%ProgramFiles%%\Internet Explorer\iexplore.exe" %%myvar%% & exit /B
您可以将 ie-tab 用于 chrome。它会在您的 chrome 浏览器中调用一个 IE 框架。对我很有用。
根据上面@topcat3 和@danieln 的回复,我调整了解决方案以摆脱烦人的挥之不去的 DOS window。以下是适合我的方法:
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
上面来自@topcat3 的简化解决方案并使其在 Win10 上运行。
HKEY_CLASSES_ROOT
alert
(Default) = "URL:Alert Protocol"
URL Protocol = ""
DefaultIcon
(Default) = "iexplore.exe,1"
shell
open
command
(Default) = cmd /V /C set "arg1=%1" & set arg1=!arg1:alert:=! & "!ProgramFiles(x86)!\Internet Explorer\iexplore.exe" !arg1!
从 Chrome 74 开始,chrome 内置了对旧版浏览器的支持 (LBS)。该行为满足您描述的需求,即(双关语)某些 URL 在新的 Internet Exploder window 中打开,而不是在 Chrome.
中的选项卡中打开来自 Google 的 official site on LBS:
As an administrator, you can automatically switch users between Chrome Browser and another browser. Deploy Legacy Browser Support (LBS) and use policies to specify which URLs open in an alternative browser. For example, you can ensure that browser visits to the internet use Chrome Browser, but visits to your organization’s intranet use Internet Explorer®.
对于Chrome(≤73)的旧版本,需要单独安装,即“旧版浏览器支持扩展”。 P.S。这个问题明确排除了浏览器扩展,但原因似乎是点击 link 应该打开一个单独的 IE window.
上面的所有答案都提到了HKEY_CLASSES_ROOT
,但是我们如何使用它呢?在哪里使用?没有提到。
但现在我有了解决方案,请按照以下步骤操作。
- 打开新记事本并在记事本中粘贴以下代码
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!\""
- Ctrl + s
- 像这样命名:
iphttp.reg
+ 保存在桌面 - 从桌面双击
iphttp.reg
文件后,首先弹出单击是
从注册表端完成,无需刷新或重新启动计算机。它会给出两个测试链接:
<a href="http://www.google.com" target="_blank">Open Same Browser</a>
<a href="iehttp://www.google.com">Open With IE</a>
就是这样。现在一切正常。
限制:从 Jquery,Javascript 根据我的理解,它不工作。
您可以使用以下为 IE 的 ftp 链接调整的代码。
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=ftp!&&cmd /c \"\"C:\Program Files (x86)\Internet Explorer\iexplore.exe\"\" !URL!\""