parentElement Property

Microsoft FrontPage Visual Basic

parentElement Property

Returns an IHTMLElement that represents the element that is one level up in the HTML element hierarchy.

expression.parentElement

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

Example

The following example accesses the element that is one level up from the BODY element, which is the HTML element.

    Dim objElement As IHTMLElement

Set objElement = ActiveDocument.body.parentElement