<APPLET ...><APPLET ...>CODE ="text string"
CODE
| this code | produces this |
<APPLET CODE="MyApplet.class" WIDTH=100 HEIGHT=100> <PARAM NAME=TEXT VALUE="Hi there"> <P>Hi there<P> </APPLET> |
If the class file is in a different directory than your HTML file, only give the file name, not
the path. Use CODEBASE
| WRONG | RIGHT |
|---|---|
<APPLET CODE="../graphics/MyApplet.class" WIDTH=100 HEIGHT=100> |
<APPLET CODE="MyApplet.class" CODEBASE="../graphics/" WIDTH=100 HEIGHT=100> |
| (doesn't work) |