Explain the applet element, Programming Languages

Assignment Help:

Explain the applet Element ?

Applets are embedded in web pages by using the and tags. The APPLET element is same to the IMG element. Like IMG APPLET references a source file in which is not part of the HTML page on that it is embedded. IMG elements do this along with the SRC attribute. APPLET elements do this along with the CODE attribute. The CODE attribute tells the browser whereas to look for the compiled .class file. It is associative to the location of the source document. If the applet resides somewhere other than the similar directory as the page it lives on, you don't just provide a URL to its location. Rather you point at the CODEBASE. The CODEBASE attribute contains a URL that points at the directory where the .class file is. The CODE attribute is the name of the .class file itself. For instance if on the HTML page of the previous section you had written

< applet code="HelloWorldApplet" codebase="classes"
width="200" height="200">
< /applet>
then the browser would have tried to find HelloWorldApplet.class in the classes directory in the similar directory as the HTML page that involved the applet. Instead if you had written
< applet code="HelloWorldApplet"
codebase="https://www.foo.bar.com/classes" width="200" height="200">
< /applet>
In short the applet viewer will try to retrieve the applet from the URL given through the formula (CODEBASE + "/" + code). Once this URL is created all the usual rules about assoiative and absolute URLs apply.
If the applet is in a non-default package, then the full package qualified name must be used. For instance,
< applet code="com.macfaq.greeting.HelloWorldApplet"
codebase="https://www.example.com/classes" width="200" height="200">
< /applet>

The HEIGHT and WIDTH attributes work very as they do with IMG, specifying how big a rectangle the browser should set aside for the applet. These numbers are specified in pixels and are needed.


Related Discussions:- Explain the applet element

We are need of a prestashop expert, We are need of a PrestaShop Expert W...

We are need of a PrestaShop Expert We are getting a fresh design created for our Jewellery website. This job is in 2 parts 1. The website engine is PrestaShop as well as w

Produce a hierarchy chart-a structured flowchart, Produce a hierarchy chart...

Produce a hierarchy chart, a structured flowchart, and a Pascal program (with appropriate comments) to generate the Sales Commission Report shown below. The commission for each sal

Write out the syntax of nested if statements, Write out the Syntax of Neste...

Write out the Syntax of Nested if Statements? The universal form is                         If(expression 1)                         {

Create a clickable map - web operating system, You are required to develop ...

You are required to develop a content management system for the following scenario:   "A Travel Information (NTIK) system is to be designed to allow travellers to access to an elec

Program for operate the rolodex, Program for Operate the Rolodex Rolod...

Program for Operate the Rolodex Rolodex is a rotating file, usually used to record business contact information. Cards are inserted in alphabetic order by name. You operate th

Write a program to show ten buttons with five possible color, Write a progr...

Write a program to show ten buttons with five possible colors: red, green, orange, yellow, blue. When the user clicks on a button, its color must advance to the next color, or go b

Java project, NOTE: You will only submit the University.java and EmptyFileE...

NOTE: You will only submit the University.java and EmptyFileException.java files (inside P3.zip/tar) NOTE on null objects:. From Project 1: Since the array of students in the Cou

Write an implementation for the prime machine, You should use the BToolkit ...

You should use the BToolkit to produce the answers to the questions below. Where applicable, please use the machine names and identifier names suggested in the question to help me

Software tools for structuring complex program, This assignment begins soft...

This assignment begins software tools and techniques for structuring complex programs. Use it to become familiar with these facilities, and ensure you use the speci?ed concepts in

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd