Share via


IHTMLElement::title Property

Sets or retrieves advisory information (a ToolTip) for the object.

Syntax

HRESULT IHTMLElement::get_title(BSTR *p);
HRESULT IHTMLElement::put_title(BSTR v);

Parameters

  • p
    Pointer to a variable of type BSTR that receives the advisory text.
  • v
    BSTR that specifies the advisory text.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

Windows Internet Explorer renders the title as a ToolTip when the user hovers the mouse over the object.

Titles are limited to 512 total characters; this limit includes control characters, such as line feeds, carriage returns, and so on.

See Also

title