【发布时间】:2015-04-21 11:39:41
【问题描述】:
我有一个使用 window.open 的 ASP.NET 应用程序。 它打开一个选项卡而不是一个新窗口。这发生在 IE 11 中。在 IE 8 中它可以正常工作。
由于我们正在迁移到 IE 11,我们希望它也可以在 IE 11 上运行。
var url = "reportViewer.aspx?reportname=" + $("#hfReportName").val() + "&schoolDistrict=" + district
window.open(url, "_blank");
我已经完成了我的研究和here is what I found.
我不确定这是否是正确的做法。我想通过代码做到这一点。知道我该怎么做。让我知道。提前致谢。
【问题讨论】:
-
您是否尝试省略第二个参数?另见stackoverflow.com/questions/27119867/…
-
请问您为什么要覆盖用户偏好并打开一个新窗口?
标签: javascript asp.net .net internet-explorer-11