IHTMLIFrameElement Object

Microsoft FrontPage Visual Basic

IHTMLIFrameElement Object

IHTMLIFrameElement

Represents an IFRAME element in an HTML document. The IHTMLIFrameElement object provides access to a limited number of properties and methods that relate to IFRAME elements. For access to all properties and methods, use the FPHTMLIFrame object.

Using the IHTMLIFrameElement Object

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

    Dim objIFrame As IHTMLIFrameElement

Set objIFrame = ActiveDocument.all.tags("iframe").Item(0)