October 2011
Beginner
432 pages
10h 18m
English
The functionality of an applet can be customized with the use of parameters, settings stored in HTML markup that serve the same purpose as command-line arguments in applications.
Parameters are stored as part of the web page that contains an applet. They’re created using the HTML tag param and its two attributes: name and value. You can have more than one param tag with an applet, but all must be placed between the opening <applet> and closing </applet> tags. Here’s an applet tag that includes several parameters:
<applet code="ScrollingHeadline" height="50" width="400"> <param name="headline1" value="Dewey defeats Truman"> <param name="headline2" value="Stix nix hix pix"> <param name="headline3" value= ...
Read now
Unlock full access