Click to return to the Reusing Browser Technology home page    
IHTMLDocument2::get_style...     IHTMLDocument2::get_URL M...     IHTMLDocument2 Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLDocument2::get_title Method


Retrieves the title of the document. The title identifies the contents of the document and is displayed in the header bar of the document window.

Syntax

HRESULT get_title(
    BSTR *p
);

Parameters

p
Address of a string variable that receives the title.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

This function retrieves the TITLE object in the document header (defined by the HEAD object).

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0

IHTMLDocument2::put_title Method


Sets the title of the document. The title identifies the contents of the document and is displayed in the header bar of the document window.

Syntax

HRESULT put_title(
    BSTR v
);

Parameters

v
String that specifies the document title.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

This function sets the TITLE object in the document header (defined by the HEAD object).

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.