document.applets.length : applets « Document « JavaScript Tutorial






Syntax

document.applets.length

The length property contains the number of Applet objects that are in a document.

<html>
    <h2>The Applets Page</h2>
    <applet name="myAddApplet" code="add.class" width=50 height=50 mayscript></aPPLET>
    <applet name="mySubtractApplet" code="subtract.class" width=50 height=50 mayscript></aPPLET>
    <script language="JavaScript">
    <!--

    document.write("There are currently ",document.applets.length);

    document.write("applets available on this page.  Check back as");

    document.write("new applets are added daily.");

    -->

    </script>
    </html>








14.5.applets
14.5.1.document.applets
14.5.2.document.applets.length
14.5.3.Checking for Java Applets with the length Property of the Applet Array