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 |