IHTMLSpanElement Object

Microsoft FrontPage Visual Basic

IHTMLSpanElement Object

IHTMLSpanFlow

Represents a SPAN element in an HTML document. The IHTMLSpanElement object provides access to a limited number of properties and methods related to the SPAN element. For access to all properties and methods, use the FPHTMLSpanElement object.

Using the IHTMLSpanElement object

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

    Dim objSelect As IHTMLSpanElement

Set objSelect = ActiveDocument.all.tags("span").Item(0)