Creates a new document and returns a pointer to the newly created document.
Syntax
HRESULT createDocumentFragment( IHTMLDocument2 **newpNewDoc );
Parameters
- newpNewDoc
- Address of a pointer to an IHTMLDocument2 interface returning the newly created document.
Return Value
Returns S_OK if successful, or an error code otherwise.