简体   繁体   English

如何使用javascript只打开ie窗口

[英]how to use javascript to open only ie window

I want a java script or j query script that opens internet explorer window. 我想要一个打开Internet Explorer窗口的java脚本或j查询脚本。 with a new page. 用新页面。 that page from which we call this script running on any browser. 我们称这个脚本在任何浏览器上运行的页面。

No browser provides that capability. 没有浏览器提供该功能。

In theory, it might be possible if you wrote (for instance) a Java Applet with sufficient security privileges to spawn Internet Explorer, but that would only work on systems with Internet Explorer installed and would require the user to grant the security privileges despite dire warning dialogs. 从理论上讲,如果您编写了(例如)具有足够安全权限的Java Applet来生成Internet Explorer,那么这可能是有可能的,但这只适用于安装了Internet Explorer的系统,并且要求用户在尽管存在严重警告的情况下授予安全权限对话框。

The best approach would be to eliminate whatever dependency the page has for Internet Explorer. 最好的方法是消除页面对Internet Explorer的依赖性。

The Window's open() method will open a new browser window. Window的open()方法将打开一个新的浏览器窗口。

<script type="text/javascript">
function open_win()
{
    window.open("http://www.w3schools.com")
}
</script>

But if you want to force open an IE window only, then its not possible. 但是如果你只想强制打开一个IE窗口,那就不可能了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM