FPHTMLTitleElement Object


Represents a TITLE element in an HTML document. See also the IHTMLTitleElement object.
Using the FPHTMLTitleElement object
Use the tags method to return an IHTMLElementCollection collection that represents a collection of all the TITLE elements in a document. Use the Item method to return an FPHTMLTitleElement object that accesses a specific TITLE element, referenced by ordinal number or by the value of the id attribute. The following example accesses the first TITLE element in the active document.
Dim objTitle As FPHTMLTitleElement
Set objTitle = ActiveDocument.all.tags("title").Item(0)
Note While there can only be one TITLE element in an HTML document, the tags method by default returns an IHTMLElementCollection. Therefore, you must use the Item method to return a single FPHTMLTitleElement object.
You can set the value of the TITLE element by using the title property.