TCnWebBrowser.DocumentTitle Property

Gets the title of the document currently displayed in the TCnWebBrowser control.

Namespace: CNClrLib.Control.WebBrowser
public
 property DocumentTitle: String read GetDocumentTitle;

Property Value

Type: String

The title of the current document, or the empty string ('') if no document is loaded.

This property is useful, for example, when you want to display the document title in the title bar of the application. If no title has been defined for the current document, this property is set to the document location and file name.

Handle the OnDocumentTitleChanged event to update the title in the title bar when the WebBrowser control navigates to a new document.