activeElement |
Gets the object that has the focus when the parent
document has focus.
当它的父文档拥有焦点时 获得当前focus的子对象
|
alinkColor |
Sets or gets the color of all active links in the document.
设置或获取文档中所有活动链接的颜色
|
all |
Gets an interface pointer to a zero-based collection of all the elements in an HTML document.
获取一个HTML文档中的所有元素的一个基于0的数组的指针
|
anchors |
Gets an interface pointer to a zero-based collection of all the
a objects in an HTML document.
获取一个HTML文档中的所有独立对象的一个基于0的数组的指针 |
applets |
Gets an interface pointer to a zero-based collection of all of the
applet objects in an HTML document.
获取一个HTML文档中的所有应用对象的一个基于0的数组的指针 |
bgColor |
Deprecated. Sets or retrieves a value that indicates the background color behind the
object.
(不赞成的) 设置或返回背景颜色的值.
|
body |
Gets an interface pointer to the document
body object.
获取document body对象的指针
|
charset |
Sets or retrieves the character set used to encode the object.
设置或获取当前使用的字符集编码的对象。
|
clear |
Not currently supported.
目前不支持。
|
close |
Closes an output stream and forces the sent data to display.
关闭一个输出流 和强制显示要发送的数据。(?)
|
cookie |
Sets or gets the string value of a cookie.
设置或获取cookie的string value.
|
createElement |
Creates an instance of the element for the specified tag.
通过指定的标记创建一个元素的实例.
|
createStyleSheet |
Creates a style sheet for the document.
为文档创建一个style sheet(css样式表).
|
defaultCharset |
Gets the default character set from the current regional language settings.
从当前的区域语言设置获取默认字符集编码.
|
designMode |
Sets or gets a value that indicates whether the document can be edited.
设置或得到一个值,表明该文档是否可以进行编辑.
|
domain |
Sets or gets the security domain of the document.
设置或获得文档的安全域.
|
elementFromPoint |
Returns the element for the specified x coordinate and the specified
y coordinate.
从指定的x坐标和y坐标获取元素
|
embeds |
Gets an interface pointer to a zero-based collection of all of the
embed objects in an HTML document.
获取一个HTML文档中的所有嵌入对象的一个基于0的数组的指针
|
execCommand |
Executes a command on the current document, current selection, or the given range.
执行一个命令对当前文档,当前的选定,或指定范围.
|
execCommandShowHelp |
Displays help information for the given command identifier.
显示帮助信息,提供命令的标识。
|
expando |
Sets or retrieves a value indicating whether arbitrary variables can be created within the
object.
设置或返回一个值指示是否任意变量可以创建的对象。(?)
|
fgColor |
Sets or gets the foreground (text) color of the document.
设置或获取文档的前景色.
|
fileCreatedDate |
Retrieves the date the file was created.
返回文件的创建时间
|
fileModifiedDate |
Retrieves the date the file was last modified.
返回文件最后修改时间
|
fileSize |
Retrieves the file size.
返回文件大小.
|
fileUpdatedDate |
Retrieves the date the file was last updated.
返回文件最后更新时间
|
forms |
Gets an interface pointer to a zero-based collection of all the
form objects in an HTML document.
获取一个HTML文档中的所有form对象的一个基于0的数组的指针
|
frames |
Gets an interface pointer to a zero-based collection of all of the
frame objects in an HTML document, if the document contains the
frameSet object. Gets an interface pointer to a zero-based collection of all of the
iframe objects in the document, if the document contains the
body object.
如果该文档包含frameSet对象,获取文档中的所有frame对象的数组指针.
如果该文档包含body对象,获取一个HTML文档中的所有iframe对象的数组指针. |
images |
Gets a pointer to the
IHTMLElementCollection interface of the zero-based collection of all of the
images in an HTML document. The images are in the same order as they appear in the document.
获取文档中的所有图像对象的数组指针.这些图像应该以相同的排序在文档中出现.
|
lastModified |
Gets the date that the page was last modified, if the page supplies one.
获取页面的最后修改时间.(?)
|
linkColor |
Sets or gets the color of the document links.
设置或获取document links的颜色.
|
links |
Gets an interface pointer to a zero-based collection of all of the
link objects and the
area objects in an HTML document.
获取文档中的所有link对象的数组指针
|
location |
Retrieves an interface pointer to a location object.
获取一个location的指针.(?)
|
mimeType |
Retrieves the MIME type for the file.
获取文件的MIME类型.
|
nameProp |
Gets the title of the document file.
获取文档文件的标题.
|
onafterupdate |
Sets or retrieves a pointer to the event handler function associated with the
onafterupdate event.
更新完毕后事件
|
onbeforeupdate |
Sets or retrieves a pointer to the event handler function associated with the
onbeforeupdate event.
开始更新前事件
|
onclick |
Sets or retrieves a pointer to the event handler function associated with the
onclick event.
鼠标单击事件
|
ondblclick |
Sets or retrieves a pointer to the event handler function associated with the
ondblclick event.
鼠标双击事件
|
ondragstart |
Sets or retrieves a pointer to the event handler function associated with the
ondragstart event.
开始拖拽事件
|
onerrorupdate |
Sets or retrieves a pointer to the event handler function associated with the
onerrorupdate event.
更新错误事件
|
onhelp |
Sets or retrieves a pointer to the event handler function associated with the
onhelp event.
帮助事件
|
onkeydown |
Sets or retrieves a pointer to the event handler function associated with the
onkeydown event.
keydown事件
|
onkeypress |
Sets or retrieves a pointer to the event handler function associated with the
onkeypress event.
keypress事件
|
onkeyup |
Sets or retrieves a pointer to the event handler function associated with the
onkeyup event.
keyup键盘
|
onmousedown |
Sets or retrieves a pointer to the event handler function associated with the
onmousedown event.
|
onmousemove |
Sets or retrieves a pointer to the event handler function associated with the
onmousemove event. |
onmouseout |
Sets or retrieves a pointer to the event handler function associated with the
onmouseout event. |
onmouseover |
Sets or retrieves a pointer to the event handler function associated with the
onmouseover event. |
onmouseup |
Sets or retrieves a pointer to the event handler function associated with the
onmouseup event. |
onreadystatechange |
Sets or retrieves a pointer to the event handler function associated with the
onreadystatechange event. |
onrowenter |
Sets or retrieves a pointer to the event handler function associated with the
onrowenter event. |
onrowexit |
Sets or retrieves a pointer to the event handler function associated with the
onrowexit event. |
onselectstart |
Sets or retrieves a pointer to the event handler function associated with the
onselectstart event. |
open |
Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the
url parameter and the name parameter to collect the output of the
IHTMLDocument2::write method and the
IHTMLDocument2::writeln method. |
parentWindow |
Gets a reference to the container object of the window. |
plugins |
Gets an interface pointer to a zero-based collection of all of the embed objects in an HTML document. |
protocol |
Sets or retrieves the protocol portion of a URL. |
queryCommandEnabled |
Returns a Boolean value that indicates whether a specified command can be successfully executed using
IHTMLDocument2::execCommand, given the current state of the document. |
queryCommandIndeterm |
Returns a Boolean value that indicates whether the specified command is in the indeterminate state. |
queryCommandState |
Returns a Boolean value that indicates the current state of the command. |
queryCommandSupported |
Returns a Boolean value that indicates whether the current command is supported on the current range. |
queryCommandText |
Retrieves the string associated with a command. |
queryCommandValue |
Returns the current value of the document, range, or current selection for the given command. |
readyState |
Retrieves a value that indicates the current state of the object. |
referrer |
Gets the URL of the location that referred the user to the current page. |
scripts |
Gets an interface pointer to a zero-based collection of all of the
script objects in an HTML document. |
security |
Not implemented. |
selection |
Gets an interface pointer to an object representing the active selection. The active selection can be an insertion point, a highlighted block of text, or another element in the document that the user or a script can carry out an action on. |
styleSheets |
Gets an interface pointer to a zero-based collection of the style sheet objects exposed from the document object. Each style sheet object represents an individual style sheet that is defined for the document. |
title |
Sets or gets the title of the document. |
toString |
Retrieves a string representation of the object. |
URL |
Sets or gets the URL for the current document. |
vlinkColor |
Sets or gets the color of the links that the user has visited. |
write |
Writes one or more HTML expressions to a document in the specified window. |
writeln |
Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window. |
相关推荐
通过窗口句柄获得IWebBrowser2和IHTMLDocument2接口,里面是源代码,分享给大家
IHTMLDocument2问题代码
C#获得IHTMLDocument2并且创建链接的单击事件
之前为这个头疼好久... 没办法获取showModalDialog对话框中网页的内容... ...然后传入IHTMLDocument2对象的引用。源代码在此供大家参考 环境:VC++ 2008 注: GCC不可编译。原因:mshtml.h文件编译错误
用WPF写的一个小程序,以网易Yeah邮箱为例,利用IHTMLDocument2类实现用户名和密码自动提交以登陆邮箱。 注:需要引用引入Microsoft.mshtml.dll链接库 地址是C:\Program Files\Microsoft.NET\Primary Interop ...
IHTMLDocument3HookSrc.rar IHTMLDocument3HookSrc.rar IHTMLDocument3HookSrc.rar
本程序演示如何通过窗口句柄取webbrowser控件的IHtmlDocument2接口
Python操作IHTMLDocument2用于自动化测试软件测试有些软件的界面采用Win32窗口嵌套一个IE控件,用Spy++只能识别出一个InternetExplorer_Server控件。常用的几个API函数无法取到IE控件里面的内容,更无法对里面的控件...
DOM开发,用VC6获取网页WEBBROWSER2,IHTMLDOCUMENT元素
通过IHTMLDOCUMENT2接口,对网页中表单进行自动填写..
在IE8与IE6的编程方法不一样,在网上找了很长时间,都找不到IE8怎么编程,在IE8中,如果用IE6的方法得到的IHtmlDocument是无效的,不能操作,得使用另一种方法来编程,请看例子吧,例子为本人在工作中总结出来的,像IE8中的...
1、获取IWebBrowser(ActiveX 插件) 初始化对象接口 2、根据1中的初始化接口, 获取组件的 IID_IHTMLDocument2 对象 接口
Doc:=wb1.Document as IHTMLDocument2; //wb1.OleObject.document.getElementsByTagName('input').item(7).click; group:=(Doc.all.item('dict_main',varEmpty) as IHTMLElement2).getElementsByTagName('div');
用IHTMLDocument2实现的自动填表。.net2003
去除控件边框((WebBrowser1.Document as IHTMLDocument2).body as HTMLBody).scroll := 'no'; (WebBrowser1.Document as IHTMLDocument2).body.style.border := '0';
IHTMLDocument2* GetDocInterface(HWND hWnd) { // 我们需要显示地装载OLEACC.DLL,这样我们才知道有没有安装MSAA HINSTANCE hInst = ::LoadLibrary( _T("OLEACC.DLL") ); IHTMLDocument2* pDoc2=NULL; if ( ...
Delphi WebBrowser 将一段HTML文字显示在网页浏览器中,实际是创建了一... HTMLDocument := WebBrowser1.Document as IHTMLDocument2; HTMLDocument.Write(PSafeArray(TVarData(vv).VArray)); HTMLDocument.Close;
mshtml.IHTMLDocument2 ieDoc = (mshtml.IHTMLDocument2)objIE.Document; foreach (mshtml.IHTMLElement ieElement in ieDoc.all) { //if its tag is input and name is q(question) if (ieElement.tagName...
Sometimes, when we are using the IE Browser Control inside of a C++ application, we need to access the HTML elements. We can do it by using standard COM objects such as IWebBrowser2, IHTMLDocument2, ...
IHTMLDocument2 pDoc2 = (IHTMLDocument2)pObj; IHTMLWindow2 win2 = (IHTMLWindow2)pDoc2.parentWindow; win2.execScript(code, "javascript"); } [Guid("CB5BDC81-93C1-11CF-8F20-00805F2CD064"), ...