createDocumentFragment method
Creates a new document and returns a pointer to the newly created document.
Syntax
HRESULT retVal = object.createDocumentFragment(pNewDoc);
Parameters
pNewDoc [out, retval]
Type: IHTMLDocument2A pointer to an IHTMLDocument2 interface that receives the newly created document.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.