martin2k

The APPLET Tag

HomeForumTutorials Tags:
 
 

Name

Java Applet

Description

Creates an area on a web page for a Java applet.

Attributes

ALT

If the browser is unable to run Java applets, the text specified in this tag will be displayed instead.

ARCHIVE

Optional.  This specifies the filename for the archive file that is preloaded for the applet.  It must be a filename located at the URL specified with the CODEBASE attribute.  The archive files use the .jar extension.

CODE

Specifies the filename for the compiled applet program.  As with the ARCHIVE attribute, the filename needs to be located at the URL specified with the CODEBASE attribute.  Files specified with this attribute have the .class extension.

CODEBASE

Specifies the URL for where the applets files are located.

HEIGHT

The height of the applet's space on the web page in pixels.

WIDTH

The width of the applet's space on the web page in pixels.

Related Tags

The PARAM tag is used within the APPLET tag to specify parameters for the applet.

Example

Code

This applet is used on the Webcam and Chat section.

<applet codebase="http://www.groupboard.com/java" code="groupboard.class" archive="groupboard.jar" width="550" height="680">
    <param name="background_red" value="220">
    <param name="background_green" value="220">
    <param name="background_blue" value="220">
    <param name="BOARD_ID" value="67790">
    <param name="NEED_PASSWORD" value="false">
</applet>

Generates


Please fill in the below form if you have any comments or additional information you want to add about the above information.  If you have any questions, please visit the ForumAny questions sent using this form will be ignored.

* - Mandatory

*Name: E-mail:

*Comments:

*Please type the following code (your comment cannot be accepted without it):


© Martin Allen 1999 - 2006.  Last updated Sunday 01 October 2006 05:59:30 PM +0100.