innerHTML Property

Microsoft FrontPage Visual Basic

innerHTML Property

Sets or returns a String that represents the text and HTML elements between the start and end tags of a specified element.

expression.innerHTML

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

See also the innerText, outerText, and outerHTML properties.

Example

The following example changes the HTML and text inside the first H1 element in the active document to "<i>Microsoft Home Page</i>"

    Dim objTag As IHTMLElement
    
Set objTag = ActiveDocument.all.tags("h1").Item(0)
    
objTag.innerHTML = "<i>Microsoft Home Page</i>"