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

determine if dna sequence is periodic or not, A string s is said to be per...

A string s is said to be periodic with a period α, if s is α k for some k > 2. (Note that α k is the string formed by concatenating k times.) A DNA sequence s is called a tande

Django template, i''ve a problem with rendering a page with django template...

i''ve a problem with rendering a page with django templates

Program for tube challenge route, 1. Introduction The Tube Challenge is ...

1. Introduction The Tube Challenge is a Guinness World Records challenge that tests both the physical and mental abilities of the person trying to break it. The main components

Software engineering, Assigment 01 Subject Code: ITE 2106 Subject Name: Sof...

Assigment 01 Subject Code: ITE 2106 Subject Name: Software Engineering You run a software development organization catering to external clients to build software solutions. The bus

Discuss the php operators, Question 1 Explain the history of Internet ...

Question 1 Explain the history of Internet Question 2 What are the advantages of DHTML? Question 3 Explain the concept of DOM Question 4 How does AJAX work

Looping, You are required to develop a program that calculates the charges ...

You are required to develop a program that calculates the charges for DVD rentals, where current release cost RM3.50 and all others cost RM2.50. If a customer rents several DVDs, e

Sql vb integration, I need an application that will gather data from one SQ...

I need an application that will gather data from one SQL Database and update another. Data is contained in dbo.CallList with following fields: Customer_ID, AlreadyPickedUp, Phone_N

Urgently need help with Javascript, Really urgent help needed with Javascri...

Really urgent help needed with Javascript. I have this website: I">https://www.theppcpresents.com/globe13/#/home I need to remove the video on the slider so that it only sho

Create single page to demonstrates an xhtml form, Create a single page that...

Create a single page that demonstrates an XHTML form. The form should include all the fields you feel are necessary for submitting an order of books and must include at least one

Use loop invariant to prove the working of the program, 1.  Use mathematica...

1.  Use mathematical induction to prove Whenever n is a positive integer. 2.  Use loop invariant to prove that the program for computing the sum of 1,...,n is correct.

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