Share via


FPHTMLTitleElement Object

FPHTMLTitleElement
Multiple objects

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.

Properties | all Property | children Property | className Property | Document Property | filters Property | id Property | innerHTML Property | innerText Property | isTextEdit Property | lang Property | language Property | offsetHeight Property | offsetLeft Property | offsetParent Property | offsetTop Property | offsetWidth Property | onafterupdate Property | onbeforeupdate Property | onclick Property | ondataavailable Property | ondatasetchanged Property | ondatasetcomplete Property | ondblclick Property | ondragstart Property | onerrorupdate Property | onfilterchange Property | onhelp Property | onkeydown Property | onkeypress Property | onkeyup Property | onmousedown Property | onmousemove Property | onmouseout Property | onmouseover Property | onmouseup Property | onrowenter Property | onrowexit Property | onselectstart Property | outerHTML Property | outerText Property | parentElement Property | parentTextEdit Property | recordNumber Property | sourceIndex Property | style Property | tagName Property | text Property | title Property

Methods | click Method | contains Method | getAttribute Method | insertAdjacentHTML Method | insertAdjacentText Method | removeAttribute Method | scrollIntoView Method | setAttribute Method | toString Method

Parent Objects

Child Objects | IHTMLElement Object | IHTMLFiltersCollection Object | IHTMLStyle Object