JavaScript Tutorial/HTML Tags/Applet
Accessing the Method of an Applet Object
<source lang="javascript">
<html>
<applet name="calculator" code="calculator.class" width=50 height=50></applet> <script language="JavaScript"> </script> </html></source>
Applet
In JavaScript, applets embedded in HTML Web pages are represented by the Applet object.
This object allows access to the public fields and methods of the applet through JavaScript properties and methods.
All the public fields in a Java applet are accessed as properties of the Applet object in JavaScript.
All the public methods in a Java applet are accessed as methods of the Applet object in JavaScript.
21. 3. Applet 21. 3. 1. Applet 21. 3. 2. <A href="/Tutorial/JavaScript/0420__HTML-Tags/AccessingtheMethodofanAppletObject.htm">Accessing the Method of an Applet Object</a>