The IHTMLDocument2 interface inherits from the IDispatch interface and is used to get information about the document and modify the HTML elements and the text in that document
The IHTMLDocument2 interface gets information about the document, and examines and modifies the HTML elements and text in the document.
Source - Official Documentation