Inserts an object, such as an image, document, application, or control, into the HTML document.
<OBJECT
ACCESSKEY=key
ALIGN=ABSBOTTOM | ABSMIDDLE | BASELINE | BOTTOM | LEFT | MIDDLE |
RIGHT | TEXTTOP | TOP
CLASS=classname
CLASSID=id
CODE=url
CODEBASE=url
CODETYPE=media-type
DATA=url
DATAFLD=colname
DATASRC=#ID
HEIGHT=n
ID=value
LANG=language
LANGUAGE=JAVASCRIPT | JSCRIPT | VBSCRIPT | VBS
NAME=name
STYLE=Styling
TABINDEX=n
TITLE=text
TYPE=MIME-type
WIDTH=n
event = script
>
Parameter |
Description |
ACCESSKEY |
Specifies an accelerator for the element. Pressing alt-key selects this element in the user's browser. |
ALIGN |
Specifies the alignment for the control-like element. |
CLASS |
Specifies the class of the tag being defined. This is used to associate a sub-classed style sheet with the tag. |
CLASSID |
Identifies the object implementation. For example, the syntax is CLSID:class-identifier for registered ActiveX controls. |
CODE |
The name of the file containing the compiled Java class. |
CODEBASE |
Specifies a URL referencing where to find the implementation of the object. |
CODETYPE |
Specifies the Internet media type for code. |
DATA |
Specifies a URL referencing the object's data. |
DATAFLD |
The column name from the data source object that supplies the bound data. This attribute can be used on both the OBJECT element and the PARAM elements it contains. |
DATASRC |
Indicates the ID of the data source object that supplies the data that is bound to this element. |
HEIGHT |
Along with WIDTH, specifies the size at which the element is drawn. This attribute may be initially set in pixels or percentages. |
ID |
An SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid ID values must begin with a letter. The underbar character, "_", may be used in the ID name. The ID should be unique throughout the scope of the document. If more than one object with the same identifier exists in a document, a collection of those named items is created that can only be referenced by ordinal position. |
LANG |
Specifies which language to use in ISO standard language abbreviation form. |
LANGUAGE |
Specifies the language the current script is written in and invokes the
proper scripting engine. The default value is JAVASCRIPT. |
NAME |
Specifies the name of the control, bookmark, or application. |
STYLE |
Specifies an in-line style sheet for the tag. |
TABINDEX |
Sets the tab order position for the object. |
TITLE |
Used to provide advisory information. |
TYPE |
Specifies the MIME type for the associated scripting engine; will override any LANGUAGE value. |
WIDTH |
Along with HEIGHT, sets the initial size of the element. This attribute may be initially set in pixels or percentages. |
event |
Can be one or more of these events: |
<OBJECT
CLASSID="clsid:99B42120-6EC7-11CF-A6C7-00AA00A47DD2"
ID=lbl1
WIDTH=250
HEIGHT=250
>
<PARAM NAME="angle" VALUE="45">
<PARAM NAME="alignment" VALUE="2">
<PARAM NAME="BackStyle" VALUE="0">
<PARAM NAME="caption" VALUE="Hello there">
<PARAM NAME="FontName" VALUE="Arial">
<PARAM NAME="FontSize" VALUE="30">
<PARAM NAME="FontBold" VALUE="1">
<PARAM NAME="frcolor" VALUE="8388008">
</OBJECT>
Objects can be submitted in forms. This element is a block element. Both the start and end tags are required.