document.applets : applets : Document JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Document » applets »

 

document.applets











Syntax








document.applets
    document.applets[index]



The applets property is an array that contains all the Applet objects from using the tag.

The applet property has one property, called length, which contains the number of Applet objects in the array.

The index number ranges from zero to length - 1.












<html>
    <applet name="Home" code="a.class" width=50 height=50 mayscript></aPPLET>
    <applet name="Office" code="b.class" width=50 height=50 mayscript></aPPLET>

    A<br>

    <script language="JavaScript">
    <!--

    document.write(document.applets[0].name,"<br>");
    document.write(document.applets[1].name);
    --></script>

    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Document
» applets