html - 这个href打开新窗口在ie7中不起作用?

标签 html css internet-explorer

此 href 打开新窗口在 ie7 中不起作用?在chrome、firefox等浏览器中都可以,但ie 7不行,怎么办?

...................................................... ...................................................... ...................................................... ......................

<a href="javascript:window.open('rated.php','Rated','width=618,height=265')">
    Rated
</a>

在chrome、firefox等浏览器都可以,但是ie 7不行,怎么办?

最佳答案

该问题似乎是由于您传递给 window.open 的第二个参数造成的。

http://msdn.microsoft.com/en-us/library/ms536651%28v=vs.85%29.aspx

根据此来源,第二个参数必须将窗口名称指定为 _parent_self_top_blank,

关于html - 这个href打开新窗口在ie7中不起作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22941460/

相关文章:

Javascript:试图根据下拉值显示不同的形式?

html - 位置绝对问题中的CSS动画下划线

java - 在 html 代码标签中设置文本样式

internet-explorer - Internet Explorer 中 TTF 支持的状态如何?

javascript - 将 JS 写入 div

html - 包含 div 的 CSS 内容溢出

javascript - 具有 ID 的 DOM 树元素是否成为全局属性?

html - 使用显示内联 block 居中 div 会导致行下方出现间距

javascript - IE <= 11 不喜欢 toString.call(value)

javascript - "On"事件在带有动态添加元素的 IE8 中不起作用