Quick References
      ADO
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      VBScript
      WML
      WMLScript
      WSH
      XHTML
      XML DOM
      XSLT

Features
      Knowledge Base
      Tutorials

Partners
     ZVON.ORG
     XML
     Planet Source Code
     VisualBuilder
     Web Design
     Your HTML Source
     XML/XSLT Forums
     ASPAlliance
     Scripts
     
     Programmers Heaven
     Tek-Tips Forums
     Developer Fusion
     Code Project











OBJECT:  Applet


An Applet object, created for every instance of the HTML <APPLET> tag in your document, allows the inclusion of a Java applet in a web page. These objects are then stored in an array in the document.applets property.

To enable an applet to access Javascript on your page, you must specify the <APPLET> tag's MAYSCRIPT attribute; failure to do this will cause an exception if the applet tries to access JavaScript. This allows a measure of security for each HTML page that contains the applet.

The following HTML code executes the myApp applet and sets the MAYSCRIPT attribute to allow it access to JavaScript. This will also automatically create an Applet object called "myApp" which will be added to the document.applets array and can be referenced as document.applets[0] (providing this is the first instance of the <APPLET> tag in your document) or document.applets["myApp"].

Code:
<APPLET CODE="myApp.class" WIDTH=150 HEIGHT=80 NAME="myApp" MAYSCRIPT>

PROPERTIES

All public properties of a Java applet are inherited by the Applet object.

METHODS

All public methods of a Java applet are inherited by the Applet object.

 


Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information