You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



You are here: Test Case Description for applets within <applet> tag > Test Case #8 for applets within <applet>: param

Applets: APPLET (param)

This test case tests the <applet> tag with its optional <param> tag which provides a method for applets to get input from the HTML file containing an <applet> tag through the use of applet parameters. In the HTML file that contains the embedded applet, each parameter is indicated by using the <param> tag with its two attributes name and value. The <param> tag goes inside the opening and closing <applet> tag.

Test Instructions

  1. Verify that the samples display correctly for the following test case.
  2. Verify that the java applet is maintained when you minimize/maximize the screen.
  3. Verify that the java applet is maintained when you re-size left & right the screen.
  4. Verify that the java applet is maintained when you re-size top & bottom the screen.
  5. Verify re-draw takes place correctly after maximizing the screen.
  6. Verify reload works.

Test Case: sample java applet with different param values.
(using <applet codebase=class pathname code="class name" width=value height=value> <param name=name value=value></applet>)

Sample 1. "Jitter Text" applet with a set of parameters values:

<applet codebase="." code="JitterText.class" width="400" height="80">
<param name="BGCOLOR" value="000000">
<param name=TEXTCOLOR value="FF0000">
<param name="TEXT" value="JitterText!">
<param name=SPEED value="250">
<param name="RANDOMCOLOR" value="1">
</applet>

Sample 2. "Jitter Text" applet with a different set of parameters values:

<applet codebase="." code="JitterText.class" width="450" height="50">
<param name="BGCOLOR" value="000000">
<param name="TEXTCOLOR" value="FF0000">
<param name="TEXT" value="Welcome to Dogbert!">
<param name="SPEED" value="300">
</applet>

Sample 3. "Jitter Text" applet with no parameters values:

<applet codebase="." code="JitterText.class" width="450" height="50"></applet>