IE命令行参数

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.


  
  
  1. iexplore.exe [ [ -embedding ] 
  2.                [ -extoff ] 
  3.                [ -framemerging ] 
  4.                [ -k ] 
  5.                [ -noframemerging ]
  6.                [ -nohangrecovery ]
  7.                [ -private ] ]
  8.              [ URL ]
  9.  

The following table describes the supported command-line options for Internet Explorer.

Command-line optionDescription
-embeddingStarts Windows Internet Explorer through OLE embedding (such as the WebBrowser Control).
-extoffWindows 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, see Troubleshooting Internet Explorer Add-ons.
-framemergingWindows Internet Explorer 8 and later versions. Enables Internet Explorer to opportunistically merge new frame processes into existing frame processes. For more information, see Internet Explorer 8 and Reliability.
-kStarts 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.
-noframemergingInternet Explorer 8 and later versions. Prevents Internet Explorer from opportunistically merging new frame processes into existing frame processes.
-nohangrecoveryWindows 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.
-privateInternet Explorer 8 and later versions. Starts Internet Explorer with InPrivate Browsing set to active. For more information, see IE Blog: Online Privacy, Tracking, and InPrivate Filtering.
URLNavigates 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 is deprecated.)

  • An option is no longer recognized by the browser and might generate error conditions if you use it. (That is, the option is obsolete.)

The following table lists command-line options that are no longer supported and that you should not use.

Command–line optionStatus
-channelbandObsolete as of Internet Explorer 7.
-eObsolete as of Internet Explorer 7.
-evalObsolete as of Internet Explorer 7.
-nomergeAvailable in pre-release versions of Internet Explorer 8. This option has been superseded by the -noframemerging option that is described in the earlier table.
-newObsolete as of Internet Explorer 7.
-nowaitObsolete as of Internet Explorer 7.
-remoteObsolete as of Internet Explorer 8.
-vObsolete as of Internet Explorer 8.
-versionObsolete as of Internet Explorer 8.


IE命令行参数启动问题。 

  1. -nohome:表示无主页不显示任何内容,就连blank空白页面也不显示
  2. -k:参数可以让IE工作在全屏方式下
  3. -slf:会让IE连接到默认的主页
  4. -new:开新的IE进程
  5. -channelband: 收藏夹
  6. -remote:可以在Unix平台上启动另一个IE进程
  7. -v:会显示出IE当前的版本(Unix平台上适用)
  8. -extoff:让IE7以无加载项方式启动

 

IE6-IE9 的命令行启动方式还有以下几条:

  1.  –embedding 启动IE 通过 OLE 嵌入式。(如WebBrowser Control)
  2.  –framemerging 启动帧合并模式,用来提高启动性能。(适用于IE8 及IE8 之后的版本)
  3.  –noframemerging 防止IE 偶然性地把新的帧合并到已经存在的帧中
  4.  –nohangrecovery 使用调试工具BHOs, Microsoft ActiveX controls 和其他扩展工具来调查问题。(适用于IE9)
  5. –private 设置为活动的Inprivate 浏览模式。(适用IE 8 及IE8 之后版本)
  6.  URL 直接打开您输入的网页
  7. –version 显示IE 版本 (IE 8 之后的版本不适用)
  8. –nomerge 等同于–nohangrecovery, 适用于IE 8 之前的版本。
  9. –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);


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值