java.applet Code Samples
Page 1 of 1 |
Prev
|
Next
How do I read an applet parameters?
Now we have the applet code ready. To enable the web browser to execute the applet create the following html page.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Parameterized Applet</title>
</head>
<body>
<applet code="org.kodejava.example.applet.AppletParameterExample"
height="150" width="350">
<param name="name" value="Mr. Bean" />
</applet>
</body>
</html>