javascript - window.open从Chrome到IE

标签 javascript google-chrome internet-explorer

我正在开发一个需要在 Internet Explorer 中打开特定 URL 的 MVC 应用程序。当用户使用 IE 时它工作正常,但如果用户使用 Chrome 或 Mozilla,window.open 将使用该浏览器,正如预期的那样,因为它很可能是默认浏览器。

有没有办法强制window.open使用IE?该页面必须在 IE 中打开,并且不能选择使用其他浏览器。

如果使用 window.open 没有任何方法可以做到这一点,那么是否可以采用其他方法?

最佳答案

它的名字是 registering an application to a URI scheme认为您可能需要重新考虑应用程序的行为

关于javascript - window.open从Chrome到IE,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27434887/

相关文章:

javascript - 将输入框滚动到javascript中的光标位置

html - 背景图片 : url and gradient

css - IE错误段落使用CSS float 布局

javascript - react 显示未正确更新

javascript - JS promise/async 澄清问题

javascript - 将带有循环引用的数据传递给 Chrome 上的 javascript web worker

html - 在单个 div 中安装 3 个跨度,适用于 Chrome 但不适用于 Firefox

javascript - clearInterval 在 javascript chrome 扩展中不起作用

javascript - getComputedTextLength 在 IE10 中抛出错误

javascript - 如何创建对象的自定义 toString 方法