Share via


IHTMLDocument2::body Property

Gets an interface pointer to the document body object.

Syntax

HRESULT IHTMLDocument2::get_body(IHTMLElement **p);

Parameters

  • p
    Address of a pointer to a variable of type IHTMLElement interface that receives the body object.

Return Value

Returns S_OK if successful, or an error value otherwise.