
To pass parameters to an applet, the parameters must be declared before the applet starts. They also must be read by the applet when the applet is initialized. The parameters are declared using the <PARAM> tag in the HTML page which is embedded in the <APPLET> tag, and it has no end tag.
The syntax for the <PARAM> tag is as follows: <PARAM NAME=parametername VALUE=parametervalue>
The HTML source file might look like the following:
Passing Parameters Example
|