1 Hour SEO : Domain Registration Bank : Ecommerce Dictionary : GoDefy : Great Web Design Tips
JavaScript 2 : Jumbo Keyword : Marketing Tips Store : Michael Wong Blog : Mike's Marketing Tools
Search Engines 2 : SEO eBook : Text Links Ads : Text Links Guide
 
Web HTML-HTML.com
You are here: HTML > Applets > <APPLET ...>

Attribute for <APPLET ...>
CODE ="text string"

CODE gives the file name of the applet to run. For example, this code says to use the applet "MyApplet.class":

this code produces this
<APPLET CODE="MyApplet.class" WIDTH=100 HEIGHT=100>
<PARAM NAME=TEXT VALUE="Hi there">
<P>Hi there<P>
</APPLET>

Hi there

If the class file is in a different directory than your HTML file, only give the file name, not the path. Use CODEBASE to give the path.

WRONG RIGHT
<APPLET
CODE="/graphics/MyApplet.class"
WIDTH=100 HEIGHT=100>
<APPLET CODE="MyApplet.class"
CODEBASE="/graphics/"

WIDTH=100 HEIGHT=100>
(doesn't work)

Hi there

<APPLET CODEBASE="..."> >>>

          

Copyright © 2002-10 Art Dacor USA LLC. All Rights Reserved.
3727 West Magnolia Blvd #489, Burbank, CA, 91505, USA.
www.HTML-HTML.com