HTML and CSS Reference
In-Depth Information
ument but instead will display the contents of the <object> tag, except
for the <param> tags. In short, you should provide alternative content in
case the browsers cannot handle the <object> tag or the object cannot
be loaded successfully.
12.2.1.1. The classid attribute
Use the classid attribute to specify the location of the object, typically
a Java class, which you want the browser to include. The value may
be the absolute or relative URL of the desired object. Relative URLs are
considered to be relative to the URL specified by the codebase attribute
if it is provided; otherwise, they are relative to the current document's
URL.
For example, to execute a clock Java applet contained in a file named
clock.class , you might include the following code in your HTML docu-
ment:
<object classid="java:clock.class">
</object>
The browser locates the code for the applet using the current docu-
ment's base URL. Hence, if the current document's URL is:
http://www.kumquat.com/harvest_time.html
the browser retrieves the applet code for our clock.class example as:
http://www.kumquat.com/clock.class
 
Search WWH ::




Custom Search