IHTMLObjectElement Object

Microsoft FrontPage Visual Basic

IHTMLObjectElement Object

IHTMLObjectElement IHTMLFormElement

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

Using the IHTMLObjectElement object

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

    Dim objObject As IHTMLObjectElement

Set objObject = ActiveDocument.all.tags("object").Item(0)