Share via


IHTMLFrameElement Object

IHTMLFrameElement

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

Using the IHTMLFrameElement Object

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

Dim objFrame As IHTMLFrameElement

Set objFrame = ActiveDocument.all.tags("frame").Item(0)

Properties | borderColor Property

Parent Objects

Child Objects