• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 19. JavaScript and Other Languages > JavaScript and Java Applets

JavaScript and Java Applets

Java, while JavaScript’s namesake, has very little in common with JavaScript other than some structures in the way that it is coded. Java is a compiled language, and because it is not interpreted in the browser as is HTML and JavaScript, it must be loaded into an HTML page to be viewed in a browser. Like a graphic or SWF file, Java programs, called “applets” (little applications), can be placed anywhere in an HTML script. The following format is the general one to bring in a Java applet to an HTML page:

						<applet code="appletName.class" name="anyName" width=w height=h> 


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint