IHTMLStyleElement Object

Microsoft FrontPage Visual Basic

IHTMLStyleElement Object

IHTMLStyleElement IHTMLStyleSheet

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

Using the IHTMLStyleElement object

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

    Dim objStyle As IHTMLStyleElement

Set objStyle = ActiveDocument.all.tags("style").Item(0)