JavaScript:强制 IE 打开新选项卡而不是窗口?

标签 javascript internet-explorer window

我想要一个脚本,使用户的 Internet Explorer 在有人单击我网页上的 (target="_blank") 链接/横幅时打开一个新选项卡而不是一个新窗口。

我讨厌 Internet Explorer 在单击链接/横幅时默认打开新窗口而不是新选项卡的方式。所有其他流行的浏览器(例如 Chrome、Opera、Firefox)默认打开标签页。

最好这个脚本需要在支持选项卡的所有版本的 IE 中工作。

那么...如何使用 JavaScript 强制 IE 打开新选项卡而不是窗口,这是默认行为?

最佳答案

这是不可能的;这是一种浏览器设置/行为,无法从页面上加载的脚本调用。

Programmatically open new pages on Tabs

关于JavaScript:强制 IE 打开新选项卡而不是窗口?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5686288/

相关文章:

javascript - 查找父 div,给定一个 div 类作为 Java 中的字符串

javascript - 在 Google Apps Script 中的函数内调用函数(invoke)

asp.net - JS window.close() 让 IE 挂掉

javascript - 如何在 Internet Explorer 浏览器的 JavaScript 中修复数组 indexOf()

excel - 错误 : Can' t connect to X11 window server using 'localhost:10.0' as the value of the DISPLAY variable

javascript - 查看复杂对象变量 (objectVar.some.other.value) 是否已定义的简单方法

javascript - 根据财务年度对象对对象进行排序

css - 字体系列 : inherit not working for IE

javascript - JS 打开窗口并更改用户代理

c# - 从父 View 模型 wpf mvvm 关闭子窗口