InternetExplorer.Application的用法及属性解释 internet explorer 12
Members Table
The following table lists the members exposed by theInternetExplorerobject.
Events
EventDescription
BeforeNavigateFires before navigation occurs in the givenobject(on either a window or frameset element).
BeforeNavigate2Fires before navigation occurs in the givenobject(on either a window element or a frameset element).
CommandStateChangeFires when the enabled state of a command changes.
DocumentCompleteFires when a document is completely loaded and initialized.
DownloadBeginFires when a navigation operation begins.
DownloadCompleteFires when a navigation operation finishes, is halted, or fails.
FileDownloadFires to indicate that a file download is about to occur. If a file download dialog box can be displayed, this event fires prior to the appearance of the dialog box.
NavigateCompleteFires after a navigation to a link is completed on either awindowelement or aframeSetelement.
NavigateComplete2Fires after a navigation to a link is completed on awindowelement or aframeSetelement.
NavigateErrorFires when an error occurs during navigation.
NewProcessCreates a new process to handle the navigation.
NewWindowFires when a new window is to be created.
NewWindow2Fires when a new window is to be created.
NewWindow3Raised when a new window is to be created. ExtendsNewWindow2with additional information about the new window.
OnFullScreenFires when theFullScreenproperty is changed.
OnMenuBarFires when theMenuBarproperty is changed.
OnQuitFires before the Internet Explorer application quits.
OnStatusBarFires when theStatusBarproperty is changed.
OnTheaterModeFires when theTheaterModeproperty is changed.
OnToolBarFires when theToolBarproperty is changed.
OnVisibleFires when theVisibleproperty of theobjectis changed.
PrintTemplateInstantiationFires when a print template is instantiated.
PrintTemplateTeardownFires when a print template is destroyed.
PrivacyImpactedStateChangeFired when an event occurs that impacts privacy, or when a user navigates away from a URL that has impacted privacy.
ProgressChangeFires when the progress of a download operation is updated on theobject.
PropertyChangeFires when thePutPropertymethod of theobjectchanges the value of a property.
RedirectXDomainBlockedFired when a cross-domain redirect request is blocked.
SetPhishingFilterStatusFires to indicate the progress and status of Microsoft Phishing Filter analysis of the current webpage.
SetSecureLockIconFires when there is a change in encryption level.
StatusTextChangeFires when the status bar text of theobjecthas changed.
ThirdPartyUrlBlockedFired when a third-party URL is blocked.
TitleChangeFires when the title of a document in theobjectbecomes available or changes.
UpdatePageStatusNot implemented.
WindowActivateNot implemented.
WindowMoveNot implemented.
WindowResizeNot implemented.
WindowStateChangedFires when the visibility state of a content window, such as the browser window or a tab, changes.
Methods
MethodDescription
ClientToWindowComputes the full size of the browser window when given the specified width and height of the content area.
ExecWBExecutes a command and returns the status of the command execution using theIOleCommandTargetinterface.
GetPropertyGets the value associated with a user-defined property name.
GoBackNavigates backward one item in the history list.
GoForwardNavigates forward one item in the history list.
GoHomeNavigates to the current home or start page.
GoSearchNavigates to the current search page.
NavigateNavigates to a resource identified by a URL or to a file identified by a full path.
Navigate2Navigates the browser to a location that might not be expressed as a URL, such as a pointer to an item identifier list (PIDL) for an entity in the Windows Shell namespace.
PutPropertyAssociates a user-defined name/value pair with theobject.
QueryStatusWBQueries theobjectfor the status of commands using theIOleCommandTargetinterface.
QuitCloses theobject.
RefreshReloads the file that is currently displayed in theobject.
Refresh2Reloads the file that is currently displayed with the specified refresh level.
ShowBrowserBarShows or hides a specified browser bar.
StopCancels a pending navigation or download, and stops dynamic page elements, such as background sounds and animations.
Properties
PropertyDescription
AddressBarSets or gets a value that indicates whether the address bar of theobjectis visible or hidden.
ApplicationGets the automation object for the application that is hosting theWebBrowser Control.
BusyGets a value that indicates whether theobjectis engaged in a navigation or downloading operation.
ContainerGets an object reference to a container.
DocumentGets the automation object of the active document, if any.
FullNameRetrieves the fully qualified path of the Internet Explorer executable.
FullScreenSets or gets a value that indicates whether Internet Explorer is in full-screen mode or normal window mode.
HeightSets or gets the height of theobject.
HWNDGets the handle of the Internet Explorer main window.
LeftSets or gets the coordinate of the left edge of theobject.
LocationNameRetrieves the path or title of the resource that is currently displayed.
LocationURLGets the URL of the resource that is currently displayed.
MenuBarSets or gets a value that indicates whether the Internet Explorer menu bar is visible.
NameRetrieves the frame name or application name of theobject.
OfflineSets or gets a value that indicates whether theobjectis operating in offline mode.
ParentGets the parent of theobject.
PathRetrieves the system folder of the Internet Explorer executable.
ReadyStateGets the ready state of theobject.
RegisterAsBrowserSets or gets a value that indicates whether theobjectis registered as a top-level browser window.
RegisterAsDropTargetSets or gets a value that indicates whether theobjectis registered as a drop target for navigation.
ResizableSets or gets a value that indicates whether theobjectcan be resized.
SilentSets or gets a value that indicates whether theobjectcan display dialog boxes.
StatusBarSets or gets a value that indicates whether the status bar for theobjectis visible.
StatusTextSets or gets the text in the status bar for theobject.
TheaterModeSets or gets whether theobjectis in theater mode.
ToolBarSets or gets whether toolbars for theobjectare visible.
TopSets or gets the coordinate of the top edge of theobject.
TopLevelContainerGets a value that indicates whether theobjectis a top-level container.
TypeGets the user type name of the contained document object.
VisibleSets or gets a value that indicates whether theobjectis visible or hidden.
WidthSets or gets the width of theobject.
Remarks
Internet Explorer8. On WindowsVista, to create an instance of Internet Explorer running at a medium integrity level, passCLSID_InternetExplorerMedium(defined in exdisp.idl) toCoCreateInstance. The resultingInternetExplorerMediumobject supports the same events, methods, and properties as theInternetExplorerobject.
Examples
The following example usesCreateObjectin Microsoft Visual Basic to launch an instance of Internet Explorer.
Dim IE As SHDocVw.InternetExplorerSet IE = CreateObject("InternetExplorer.Application")
The following C# example launches an instance of Internet Explorer and navigates to a Web page. The code also demonstrates how to create an event handler to listen for theBeforeNavigate2event. The project requires a reference to the Microsoft Internet Controls (SHDocVw) type library.
using System;using System.Collections.Generic;using System.Text;namespace ConsoleApplication1{ class EventHandlers { public void OnBeforeNavigate2(object sender, ref object URL, ref object Flags, ref object Target, ref object PostData, ref object Headers, ref bool Cancel) { Console.WriteLine("BeforeNavigate2 fired!"); } } class Program { static void Main(string[] args) { EventHandlers e = new EventHandlers(); SHDocVw.InternetExplorer IE = new SHDocVw.InternetExplorer(); object Empty = 0; object URL = "http://www.live.com"; // override BeforeNavigate2 event IE.BeforeNavigate2 += new SHDocVw.DWebBrowserEvents2_BeforeNavigate2EventHandler( e.OnBeforeNavigate2); IE.Visible = true; IE.Navigate2(ref URL, ref Empty, ref Empty, ref Empty, ref Empty); System.Threading.Thread.Sleep(5000); IE.Quit(); } }}
ObjectInformation
CLSIDCLSID_InternetExplorer
Minimum availabilityInternet Explorer 4.0
Minimum operating systemsWindows98, Windows CE4.0
更多阅读
我的IE经常出现Microsoft Internet Explorer遇到问题需要关闭. microsoft explorer
我的IE经常出现Microsoft Internet Explorer遇到问题需要关闭......的信息提示怎么解决?问题描述:我的IE经常出现"M
js innerText与innerHTML的用法及firefox支持innerText firefox innertext
js中 innerHTML与innerText的用法与区别及解决Firefox不支持Js的InnerHtml问题用法:<div id="test"><span>test1</span> test2</div>在 JS中可以使用:test.innerHTML:也就是从对象的起始位置到终止位置的全
法语中现在分词与副动词的用法及区别 副动词和现在分词
主要区别;副动词用来修饰动词,现在分词用来修饰名词或代词;现在分词多用于书面语,口语中很少使用,而副动词可以用于口语。现在分词(le participe présent)构成:去掉直陈式第一人称复数的词尾-ons,另加-ant例如,faire : nous faisons→ fais
Excel统计函数COUNTIF的用法及实例 vb随机函数用法和实例
[转自]★笨笨☆ http://blog.sina.com.cn/pengjichang一:首先介绍COUNTIF函数的用法英文通用格式是:COUNTIF(range,criteria)中文通用格式是:COUNTIF(数据区域,条件表达式)1、返加包含值12的单元格数量=COUNTIF(range,12)2、返回包含负值的
引号“”的用法——从网上收集整理的,算比较全的 冒号引号的用法及举例
一、双引号的基本用法 1)基本用法有以下几种:1.表示直接引用。2.表示特殊含义。 3.表示着重强调(着重论述的对象)。 4.表示特定称谓。 5.表示否定和讽刺(也属特殊含义一类)2)基本用法举例:1、人们都说:“桂林山水甲天下”.——(直接引用)