Java Applet - Embedding Into A Web Page

Embedding Into A Web Page

The applet can be displayed on the web page by making use of the deprecated applet HTML element, or the recommended object element. Embed element can be used with Mozilla family browsers (embed was deprecated in HTML 4 but is included in HTML 5). This specifies the applet's source and location. Object and embed tags can also download and install Java virtual machine (if required) or at least lead to the plugin page. Applet and object tags also support loading of the serialized applets that start in some particular (rather than initial) state. Tags also specify the message that shows up in place of the applet if the browser cannot run it due any reason.

However, despite object being officially a recommended tag, as of 2010, the support of the object tag was not yet consistent among browsers and Sun kept recommending the older applet tag for deploying in multibrowser environments, as it remained the only tag consistently supported by the most popular browsers. To support multiple browsers, the object tag currently requires JavaScript (that recognizes the browser and adjusts the tag), usage of additional browser-specific tags or delivering adapted output from the server side. Deprecating applet tag has been criticized. Oracle now provides a maintained JavaScript code to launch applets with cross platform workarounds.

Read more about this topic:  Java Applet

Famous quotes containing the words web and/or page:

    Any newspaper, from the first line to the last, is nothing but a web of horrors.... I cannot understand how an innocent hand can touch a newspaper without convulsing in disgust.
    Charles Baudelaire (1821–1867)

    So here they are, the dog-faced soldiers, the regulars, the fifty-cents-a-day professionals riding the outposts of the nation, from Fort Reno to Fort Apache, from Sheridan to Stark. They were all the same. Men in dirty-shirt blue and only a cold page in the history books to mark their passing. But wherever they rode and whatever they fought for, that place became the United States.
    Frank S. Nugent (1908–1965)