Java uses an APPLET element to place an applet in an HTML document.

General Format

<APPLET
    Codebase = "path to directory containing class files"
    Code     = "name of class file"
    Width    = "width of applet in pixels"
    Height   = "height of applet in pixels">
    <PARAM Name="parameter name" Value="value of parameter">
    <PARAM Name="parameter name" Value="value of parameter">
</APPLET>

Example

<APPLET 
  Codebase  = "http://www.december.com/present/"
  Code      = "NervousText.class"
  Width     = "300"
  Height    = "60">
  <PARAM Name="text" Value = "Hello, World!">
</APPLET>

Note that Java-enabled browsers will ignore all the non-PARAM element text inside an APPLET element. So you could include a special message in the APPLET element explaining to the user that they don't have a Java-enabled browser and therefore can't use the feature.

Save this page to any social bookmarking site! Share · search Search · store Market · star Directory
2017-05-11 · John December · Contact · Terms of Use © December Communications, Inc.