Windows Internet Explorer includes several command-line options that enable you to troubleshoot and configure the browser. This topic describes the options that Internet Explorer supports.
Supported Command-Line Options
The following declaration shows the command-line definition for Internet Explorer.
- iexplore.exe [ [ -embedding ]
- [ -extoff ]
- [ -framemerging ]
- [ -k ]
- [ -noframemerging ]
- [ -nohangrecovery ]
- [ -private ] ]
- [ URL ]
The following table describes the supported command-line options for Internet Explorer.
Command-line option | Description |
---|---|
-embedding | Starts Windows Internet Explorer through OLE embedding (such as the WebBrowser Control). |
-extoff | Windows Internet Explorer 7 and later versions. Starts Internet Explorer in No Add-ons mode, which you can use to troubleshoot problems with browser add-ons. For more information, seeTroubleshooting Internet Explorer Add-ons. |
-framemerging | Windows Internet Explorer 8 and later versions. Enables Internet Explorer to opportunistically merge new frame processes into existing frame processes. For more information, seeInternet Explorer 8 and Reliability. |
-k | Starts Internet Explorer in kiosk mode. The browser opens in a maximized window that does not display the address bar, the navigation buttons, or the status bar. |
-noframemerging | Internet Explorer 8 and later versions. Prevents Internet Explorer from opportunistically merging new frame processes into existing frame processes. |
-nohangrecovery | Windows Internet Explorer 9. Prevents Internet Explorer from restarting a tab when it stops responding. This option enables application developers to use debugging tools to investigate problems with Browser Helper Objects (BHOs), Microsoft ActiveX controls, and other browser extentions. |
-private | Internet Explorer 8 and later versions. Starts Internet Explorer with InPrivate Browsing set to active. For more information, seeIE Blog: Online Privacy, Tracking, and InPrivate Filtering. |
URL | Navigates to the page or resource that you specify as URL, after Internet Explorer opens. |
Superseded, Deprecated, and Obsolete Options
Some command-line options that earlier Internet Explorer versions supported are not supported in later versions of the browser because of one of the following reasons:
An option is replaced by another option. (That is, the option has been superseded.)
An option is recognized by the browser, but it does not function like it used to or we no longer recommend that you use it. (That is, the option isdeprecated.)
An option is no longer recognized by the browser and might generate error conditions if you use it. (That is, the option isobsolete.)
The following table lists command-line options that are no longer supported and that you should not use.
Command–line option | Status |
---|---|
-channelband | Obsolete as of Internet Explorer 7. |
-e | Obsolete as of Internet Explorer 7. |
-eval | Obsolete as of Internet Explorer 7. |
-nomerge | Available in pre-release versions of Internet Explorer 8. This option has been superseded by the-noframemerging option that is described in the earlier table. |
-new | Obsolete as of Internet Explorer 7. |
-nowait | Obsolete as of Internet Explorer 7. |
-remote | Obsolete as of Internet Explorer 8. |
-v | Obsolete as of Internet Explorer 8. |
-version | Obsolete as of Internet Explorer 8. |
IE命令行参数启动问题。
- -nohome:表示无主页不显示任何内容,就连blank空白页面也不显示
- -k:参数可以让IE工作在全屏方式下
- -slf:会让IE连接到默认的主页
- -new:开新的IE进程
- -channelband: 收藏夹
- -remote:可以在Unix平台上启动另一个IE进程
- -v:会显示出IE当前的版本(Unix平台上适用)
- -extoff:让IE7以无加载项方式启动
IE6-IE9 的命令行启动方式还有以下几条:
- –embedding 启动IE 通过 OLE 嵌入式。(如WebBrowser Control)
- –framemerging 启动帧合并模式,用来提高启动性能。(适用于IE8 及IE8 之后的版本)
- –noframemerging 防止IE 偶然性地把新的帧合并到已经存在的帧中
- –nohangrecovery 使用调试工具BHOs, Microsoft ActiveX controls 和其他扩展工具来调查问题。(适用于IE9)
- –private 设置为活动的Inprivate 浏览模式。(适用IE 8 及IE8 之后版本)
- URL 直接打开您输入的网页
- –version 显示IE 版本 (IE 8 之后的版本不适用)
- –nomerge 等同于–nohangrecovery, 适用于IE 8 之前的版本。
- –eval 访问数据访问页的时候启用函数控件。(适用IE 7 之前的版本)
隐藏Menu bar 和address bar,可以通过按F11, 或者运行下面脚本(适用IE 7):
var window_dimensions = “toolbars=no,menubar=no,location=no,scrollbars=yes,resizable=yes,status=yes”
window.opener=self
window.close()
window.open(“[url]“,”_blank”, window_dimensions);
window.moveTo(0,0);
window.resizeTo(screen.width,screen.height-100);