HTML Object Element
The HTML 4.0 <OBJECT> element is designed for extending HTML. The <OBJECT> element allows an author to download external data or programs into the current page. This element can be used to download Java Applet's, ActiveX controls, Scriptlets, or other types of information. The long-term goal for the <OBJECT> element is to replace the <APPLET> and <IMG> element with a single way to embed data.
Part of the design goals of the <OBJECT> element is to ensure that it graceful degrades in
browsers that do not support the element or possibly the object type or data. When a browser does not support the
<OBJECT> element or a particular use of the element, the contents within the element are to be displayed. For
In the above example, we defined an OBJECT element that would manipulate the data,
When the object element works correctly, it can run an applet or control, or display a specific file type. The object
below displays our home page. This object is defined as follows:
If you are familiar with the <IFRAME> element, the above use of <OBJECT> should look very similar. The single difference is that the <OBJECT> element cannot navigate indepedently from the containing document. This means that clicking on a link in the <OBJECT> always replaced the entire document, while with an <IFRAME> it is possible to have a a document navigate and appear within the same <IFRAME> element.
Copyright © 1997-2008 InsideDHTML.com, LLC. All rights reserved.