![]() ![]() It supports all the properties and methods necessary to access the entire contents of the active HTML document. The HTMLDocument object is functionally equivalent to the HTML document object used in HTML page script. Specifically, it returns an HTMLDocument object reference. When the active document is an HTML page, this property provides access to the contents of the HTML DOM. For more information, see Safe Initialization and Scripting for ActiveX Controls. For Internet Explorer 7 and later, the return code is S_FALSE rather than S_OK. Warning If the document object type is not safe for scripting, this method returns successfully but sets ppDisp to Null. For more information on the Microsoft Office DOM, refer to the Microsoft Office Developer Center. For Word documents, this is functionally equivalent to the Document object in the Word object model. When other document types are active, such as a Microsoft Word document, this property returns the default IDispatch dispatch interface (dispinterface) pointer for the hosted document object. It supports all the required properties and methods to access the entire contents of the active HTML document.Ĭ++ programs can get the Component Object Model (COM) interfaces IHTMLDocument, IHTMLDocument2, and IHTMLDocument3 by calling QueryInterface on the IDispatch received from this property. The HTMLDocument coclass is functionally equivalent to the Dynamic HTML (DHTML) document object used in HTML script. Specifically, it returns an IDispatch interface pointer to the HTMLDocument component object class (coclass). ![]() When the active document is an HTML page, this property provides access to the contents of the HTML Document Object Model (DOM). Gets the automation object of the active document, if any. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |