简体   繁体   English

在Firefox/Chrome页面打开IE浏览器

[英]Open IE browser in Firefox/Chrome page

Our Web application is based on IE9, which means only IE9 can open the pages in our site.我们的 Web 应用程序是基于 IE9 的,这意味着只有 IE9 才能打开我们网站中的页面。 We'll prevent user to browse our site when their browser is not IE9.当浏览器不是 IE9 时,我们将阻止用户浏览我们的网站。 But sometimes we had to send a link to user's email box to complete some actions and they will open the link directly with their default browser, the problem is here, if the default browser is not IE9 then they can't open the link, they have to copy the link to IE9.但是有时我们必须将链接发送到用户的 email 框以完成一些操作,他们将直接使用默认浏览器打开链接,问题就在这里,如果默认浏览器不是 IE9 那么他们无法打开链接,他们必须将链接复制到IE9。 Our user don't want do this manually, they want open the link in IE9 directly no matter what the default browser is.我们的用户不希望手动执行此操作,他们希望直接在 IE9 中打开链接,无论默认浏览器是什么。

I have tried using ActiveXObject, but it only works in IE.我试过使用 ActiveXObject,但它只适用于 IE。 I want have a script which can open IE browser in Firefox/Chrome page.我想要一个可以在 Firefox/Chrome 页面中打开 IE 浏览器的脚本。

It sounds like you want to have a link in an email that activates a specific program on the user's computer rather than the program that they've identified should be used (eg, their default browser).听起来您想在 email 中添加一个链接,以激活用户计算机上的特定程序,而不是他们确定应该使用的程序(例如,他们的默认浏览器)。 I don't believe you can do that.我不相信你能做到。

You can install "protocol handlers" in both Chrome and Safari (I suspect Firefox as well), which would let you send a link like ie://example.com/path/to/app .您可以在 Chrome 和 Safari(我怀疑也是 Firefox)中安装“协议处理程序”,这样您就可以发送类似ie://example.com/path/to/app的链接。 Your protocol handler would launch IE and take you to the relevant site.您的协议处理程序将启动 IE 并将您带到相关站点。 (Apple does this with iTunes.) But your users would have to install the handler (and, of course, you'd have to write it). (Apple 通过 iTunes 做到了这一点。)但是您的用户必须安装处理程序(当然,您必须编写它)。

An easier answer might be to have the users install any of the ubiquitous "open in IE" add-ons/extensions that exist for Chrome, Firefox, etc. They follow the link, then choose "open in IE" from some kind of menu.一个更简单的答案可能是让用户安装 Chrome、Firefox 等存在的任何无处不在的“在 IE 中打开”附加组件/扩展。他们点击链接,然后从某种菜单中选择“在 IE 中打开” . (If they're using webmail, they may even be able to right-click the link and choose that line item, depending on the extension.) (如果他们使用网络邮件,他们甚至可以右键单击链接并选择该行项目,具体取决于扩展名。)


Side note: Obviously, though, barring it being impossible I'd recommend making your application compatible with Chrome and Firefox.旁注:显然,除非不可能,否则我建议您使您的应用程序与 Chrome 和 Firefox 兼容。

No you can't do it..不,你不能这样做..

but there is some alternatives:但还有一些选择:

  1. Install your users IE tab:安装您的用户 IE 选项卡:
    FireFox - http://lifehacker.com/135297/inte.net-explorer-in-a-firefox-tab?tag=softwarewebpublishing , FireFox - http://lifehacker.com/135297/inte.net-explorer-in-a-firefox-tab?tag=softwarewebpublishing ,
    Chrome - https://chrome.google.com/webstore/detail/hehijbfgiekmjfkfjpbkbammjbdenadd Chrome - https://chrome.google.com/webstore/detail/hehijbfgiekmjfkfjpbkbammjbdenadd

  2. Use a batch file that will launch your link in explorer.使用将在资源管理器中启动链接的批处理文件。

  3. use this Firefox plugin makes it possible to use (host) ActiveX controls in Firefox - http://code.google.com/p/ff-activex-host/使用这个 Firefox 插件可以在 Firefox 中使用(主机)ActiveX 控件 - http://code.google.com/p/ff-activex-host/

  4. instead of ActiveX try using Netscape Plugin Application Programming Interface (NPAPI) - a cross-platform plugin architecture used by many web browsers.尝试使用Netscape 插件应用程序编程接口 (NPAPI)而不是 ActiveX - 许多 web 浏览器使用的跨平台插件架构。

  5. Similar as with a batch file, you may create a link file to the page you need using the ".website" file extension with IE, which is configured in windows by default to open with ie .与批处理文件类似,您可以使用 IE 使用“.website”文件扩展名创建指向您需要的页面的链接文件,默认情况下在 windows 中配置为使用 ie 打开 Put it in your webserver public folder and then add a link to that file in your website将它放在您的网络服务器公共文件夹中,然后在您的网站中添加指向该文件的链接

You don't have to write code to create a custom protocol handler in Windows. See this page for how to define one in the registry.您不必编写代码来在 Windows 中创建自定义协议处理程序。请参阅此页面了解如何在注册表中定义一个。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 用于关闭浏览器FireFox / chrome / IE的JavaScript / jquery - JavaScript/ jquery for Closing Browser FireFox / chrome / IE window.open在Firefox中有效,但不适用于IE或Chrome - window.open works in Firefox but not IE or Chrome Firefox和Chrome中window.open浏览器问题 - window.open browser issue in Firefox and Chrome 网站在IE 8上的Chrome / Firefox / IE 9+但白页显示正常 - Website Displays fine on Chrome/Firefox/IE 9+ but White Page on IE 8 检测IE浏览器并使用chrome浏览器打开相同的url - Detect IE browser and open the same url using chrome browser 日期在IE浏览器中显示为无效,但与chrome和Firefox兼容 - Date is showing invalid in IE browser but works good with chrome and Firefox 跨浏览器AJAX和setTimeout()在IE中有效,但在Chrome / Firefox中失败 - Cross browser AJAX and setTimeout() works in IE but fails in Chrome/Firefox 浏览器独立性问题代码适用于IE,但不适用于Firefox和Chrome - Browser Independence issue Code Working for IE but not for Firefox and Chrome jQuery未在firefox浏览器中调用Webservice方法,并且在Chrome和IE中运行良好 - Jquery not calling Webservice method in firefox browser and it is working good in Chrome and IE 是否使用jquery /与跨浏览器兼容的iframe调整大小(IE,Chrome,Safari,Firefox) - jquery or not / Cross Browser Compatible iframe resize (IE, Chrome, Safari, Firefox)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM