IHTMLBRElement Object

Microsoft FrontPage Visual Basic

IHTMLBRElement Object

IHTMLBRElement

Represents the BR element in an HTML document. The IHTMLBRElement object provides limited access to properties and methods related to the BR element. For access to all properties and methods, use the FPHTMLBRElement object.

Using the IHTMLBRElement Object

Use the tags method to return an IHTMLElementCollection collection that represents all the BR elements in a document. Use the Item method to return an IHTMLBRElement object that accesses a specific BR element, referenced by ordinal number or by the value of the id attribute. The following example accesses the first BR element in the active document.

    Dim objBreak As IHTMLBRElement

Set objBreak = ActiveDocument.all.tags("br").Item(0)