IHTMLEmbedElement Object

Microsoft FrontPage Visual Basic

IHTMLEmbedElement Object

IHTMLEmbedElement

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

Using the IHTMLEmbedElement Object

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

    Dim objEmbed As IHTMLEmbedElement

Set objEmbed = ActiveDocument.embeds.Item(0)