FPHTMLSpanElement Object

Microsoft FrontPage Visual Basic

FPHTMLSpanElement Object

FPHTMLSpanElement Multiple objects

Represents a SPAN element in an HTML document. See also the IHTMLSpanElement object.

Using the FPHTMLSpanElement object

Use 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 FPHTMLSpanElement 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 FPHTMLSpanElement

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