Grow your CSS skills. Land your dream job.

Best way to attach a java applet to a page?

  • # January 28, 2010 at 3:37 pm

    I don’t know where else to post this** =/

    I seriously cant find any of the info i had before about this, but i remember there was a few different ways and i believe the "best" way was from using <object> tags instead of <applet> tags, maybe <embed>?

    The fact that when you use an <object> tag is then you need the correct type, codebase, and classid and other things. Dont forget about IE =].. Im just a bit confused.

    http://java.sun.com/j2se/1.5.0/docs/gui … _tags.html
    sun still recommends the <applet> tags because each browser implements that <object> tag differently, even though applet tags are deprecated.

    What do you people say or recommend?

    Like this:

    Code:

    Your browser does not support the applet tag.

    Or maybe this way(which i believe is the way i did it on my site):

    Code:



    < ![endif]-->|Hello World applet test|
    If you are seeing this message,
    you probably have an older version
    of Java thats needs to be updated
    Download Java
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".