Select Page

How to insert a java applet in a web page

Valid HTML 4.01 Frameset opera safari chrome firefox ie

I did learn a lot today while trying to validating my new sub domain: I found a huge number of examples using the tag <applet> which has been deprecated and create errors and warning in W3C validation engine. But no example using the  the new HTML <object> tag.  Hence I decide to publish this small post.

The following page are now XHTM 1.0

While this one is

Here is the code to insert a java applet into an XHTML 1.0 Strict web page

<div> <object classid="java:mkv_htmlgraph.class"           type="application/x-java-applet"         archive="mkv_htmlgraph.jar"         width="600" height="600">     <param name="code" value="mkv_htmlgraph" />     <param name="archive" value="mkv_htmlgraph.jar" />      <param name="image" value="loading.gif" />     <param name="boxmessage" value="Loading Processing software..." />     <param name="boxbgcolor" value="#FFFFFF" />     <param name="urlFromForm" value=";lt;?php echo $url ?>" />       <strong>         This browser does not have a Java Plug-in.       </strong>       <br />       <a href="">         Get the latest Java Plug-in here.       </a>  </object> </div> 
The source code has been changed and is available here: Download now


By the way, I discover huge issues in IE8, less in IE7 with my homepage, none in Opera or Firefox. And since my homepage is currently not valid, I will correct everything to make it XHTML 1.0 compliant today.

0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments


Would love your thoughts, please comment.x