我已经尝试使用ActiveXObject,但它只在IE中工作。我想要一个可以在Firefox / Chrome页面打开IE浏览器的脚本。
解决方案听起来好像你想在电子邮件中有一个链接来激活特定的用户的计算机而不是他们已经识别的程序应该被使用(例如,他们的默认浏览器)。我不相信你可以做到这一点。
你可以在Chrome和Safari中安装协议处理程序(我也怀疑是Firefox),它可以让你发送像这样的链接:ie://example/path/to/app 。您的协议处理程序将启动IE并带您到相关的网站。 (苹果公司在iTunes上做这个),但是你的用户将不得不安装这个处理程序(当然,你必须写下它)。
一个更简单的答案可能会让用户安装任何为Chrome,Firefox等而存在的在IE中打开附加组件/扩展程序。它们将遵循该链接,然后从某种菜单中选择在IE中打开。 (如果他们使用网络邮件,他们甚至可以右键单击该链接,并根据扩展名选择该订单项。)
附注:显然,除非不可能,否则我建议您将应用程序与Chrome和Firefox兼容。
Our Web application is based on IE9, which means only IE9 can open the pages in our site. We'll prevent user to browse our site when their browser is not 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. Our user don't want do this manually, they want open the link in IE9 directly no matter what the default browser is.
I have tried using ActiveXObject, but it only works in IE. I want have a script which can open IE browser in Firefox/Chrome page.
解决方案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 (e.g., their default browser). 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/path/to/app. Your protocol handler would launch IE and take you to the relevant site. (Apple does this with iTunes.) But your users would have to install the handler (and, of course, you'd have to write it).
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. (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.
更多推荐
在Firefox / Chrome页面打开IE浏览器
发布评论