IHTMLDocument3接口类成员

IHTMLDocument3接口类成员

This interface provides access to additional properties and methods of the document objects

 

attachEvent

Binds the specified function to an event, so that the function gets called whenever the event fires on the object

HRESULT attachEvent(BSTR event,IDispatch *pDisp,VARIANT_BOOL *pfResult);

childNodes

Retrieves the children of the document object

HRESULT IHTMLDocument3::get_childNodes(IDispatch **p);

createDocumentFragment

Creates a new document and returns a pointer to the newly created document

HRESULT createDocumentFragment(IHTMLDocument2 **pNewDoc);

createTextNode

Creates a text string from the specified value

HRESULT createTextNode(BSTR text,IHTMLDOMNode **newTextNode);

detachEvent

Unbinds the specified function from the event, so that the function stops receiving notifications when the event fires

HRESULT detachEvent(BSTR event,IDispatch *pDisp);

dir

Sets or retrieves the reading order of the object

HRESULT IHTMLDocument3::get_dir(BSTR *p);

HRESULT IHTMLDocument3::put_dir(BSTR v);

documentElement

Retrieves a reference to the root node of the document

HRESULT IHTMLDocument3::get_documentElement(IHTMLElement **p);

getElementById

Returns a reference to the first object with the specified value of the ID attribute

HRESULT getElementById(BSTR v,IHTMLElement **pel);

getElementsByName

Retrieves a collection of objects based on the value of the NAME attribute

HRESULT getElementsByName(BSTR v,IHTMLElementCollection **pelColl);

getElementsByTagName

Retrieves a collection of objects based on the specified element name

HRESULT getElementsByTagName(BSTR v,IHTMLElementCollection **pelColl);

onbeforeeditfocus

Sets or retrieves a pointer to the event handler function associated with the onbeforeeditfocus event

HRESULT IHTMLDocument3::get_onbeforeeditfocus(VARIANT *p);

HRESULT IHTMLDocument3::put_onbeforeeditfocus(VARIANT v);

oncellchange

Sets or retrieves a pointer to the event handler function associated with the oncellchange event

HRESULT IHTMLDocument3::get_oncellchange(VARIANT *p);

HRESULT IHTMLDocument3::put_oncellchange(VARIANT v);

oncontextmenu

Sets or retrieves a pointer to the event handler function associated with the oncontextmenu event

HRESULT IHTMLDocument3::get_oncontextmenu(VARIANT *p);

HRESULT IHTMLDocument3::put_oncontextmenu(VARIANT v);

ondataavailable

Sets or retrieves a pointer to the event handler function associated with the ondataavailable event

HRESULT IHTMLDocument3::get_ondataavailable(VARIANT *p);

HRESULT IHTMLDocument3::put_ondataavailable(VARIANT v);

ondatasetchanged

Sets or retrieves a pointer to the event handler function associated with the ondatasetchanged event

HRESULT IHTMLDocument3::get_ondatasetchanged(VARIANT *p);

HRESULT IHTMLDocument3::put_ondatasetchanged(VARIANT v);

ondatasetcomplete

Sets or retrieves a pointer to the event handler function associated with the ondatasetcomplete event

HRESULT IHTMLDocument3::get_ondatasetcomplete(VARIANT *p);

HRESULT IHTMLDocument3::put_ondatasetcomplete(VARIANT v);

onpropertychange

Sets or retrieves a pointer to the event handler function associated with the onpropertychange event

HRESULT IHTMLDocument3::get_onpropertychange(VARIANT *p);

HRESULT IHTMLDocument3::put_onpropertychange(VARIANT v);

onrowsdelete

Sets or retrieves a pointer to the event handler function associated with the onrowsdelete event

HRESULT IHTMLDocument3::get_onrowsdelete(VARIANT *p);

HRESULT IHTMLDocument3::put_onrowsdelete(VARIANT v);

onrowsinserted

Sets or retrieves a pointer to the event handler function associated with the onrowsinserted event

HRESULT IHTMLDocument3::get_onrowsinserted(VARIANT *p);

HRESULT IHTMLDocument3::put_onrowsinserted(VARIANT v);

onstop

Sets or retrieves a pointer to the event handler function associated with the event

HRESULT IHTMLDocument3::get_onstop(VARIANT *p);

HRESULT IHTMLDocument3::put_onstop(VARIANT v);

parentDocument

Retrieves an interface pointer that provides access to the parent object's document interface

HRESULT IHTMLDocument3::get_parentDocument(IHTMLDocument3 **p);

recalc

Recalculates all dynamic properties in the current document

HRESULT recalc(VARIANT_BOOL fForce);

releaseCapture

Removes mouse capture from the object in the current document

HRESULT releaseCapture(VOID);

uniqueID

Retrieves an autogenerated, unique identifier for the object

HRESULT IHTMLDocument3::get_uniqueID(BSTR *p);

 

Interface Information

Stock Implementation

mshtml.dll

Custom Implementation

No

Inherits from

IDispatch

Header and IDL files

Mshtml.h, Mshtml.idl

Minimum availability

Internet Explorer 5

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值