applets Property

       

Returns an IHTMLElementCollection object collection that represents a collection of all applets in the current document.

expression.applets

expression   Required. An expression that returns a DispFPHTMLDocument object.

Remarks

This collection is indexed first by name, then by identifier. If duplicate names are found, a collection of those named items is returned. Collections of duplicate names must subsequently be referenced by ordinal position.

Example

The following example returns a reference to the applets collection and displays the names of all applets in the current document.

Sub AppletsCollection()
'Returns the collection of all applets in the active document.

    Dim objApp As FrontPage.Application
    Dim objAll As IHTMLElementCollection

    Set objApp = FrontPage.Application
    'Reference the applets collection.
    Set objAll = FrontPage.ActiveDocument.applets

    For i = 0 To objAll.Length - 1
        'Display names of all applets in collection.
        MsgBox "Element tag name: " & objAll.Item(i).Name
    Next i

End Sub