Contents Index Topic Contents | ||
Previous Topic: NOSCRIPT Next Topic: OL |
OBJECT
Description
Inserts an object, such as an image, document, application, or control, into the HTML document. An object can contain any elements ordinarily used within the body of an HTML document, including section headings, paragraphs, lists, forms, and nested objects.
Syntax
<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=css1-properties
TABINDEX=n
TITLE=text
TYPE=MIME-type
WIDTH=n
event = script
>
Parameter Description ACCESSKEY=key Specifies an accelerator for the element. Pressing alt-key selects this element in the user's browser. ALIGN=ABSBOTTOM | ABSMIDDLE | BASELINE | BOTTOM | LEFT | MIDDLE | RIGHT | TEXTTOP | TOP Specifies the alignment for the control-like element. CLASS=classname Specifies the class of the tag being defined. This is used to associate a sub-classed style sheet with the tag. CLASSID=id Identifies the object implementation. For example, the syntax is CLSID:class-identifier for registered ActiveX controls. CODE=url The name of the file containing the compiled Java class. CODEBASE=url Specifies a URL referencing where to find the implementation of the object. CODETYPE=media-type Specifies the Internet media type for code. DATA=url Specifies a URL referencing the object's data. DATAFLD=colname 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=#ID Indicates the ID of the data source object that supplies the data that is bound to this element. HEIGHT=n Along with WIDTH, specifies the size at which the element is drawn. This attribute may be initially set in pixels or percentages. ID=value 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=language Specifies which language to use in ISO standard language abbreviation form. LANGUAGE=JAVASCRIPT | JSCRIPT | VBS | VBSCRIPT Specifies the language the current script is written in and invokes the proper scripting engine. The default value is JAVASCRIPT.
JAVASCRIPT, JSCRIPT The scripting language is written in JavaScript. VBS, VBSCRIPT The scripting language is written in VBScript. NAME=name Specifies the name of the control, bookmark, or application. STYLE=css1-properties Specifies an in-line style sheet for the tag. TABINDEX=n Sets the tab order position for the object. TITLE=text Used to provide advisory information. The contents of the title attribute will be displayed in a ToolTip during the onmouseover event. TYPE=MIME-type Specifies the MIME type for the associated scripting engine; will override any LANGUAGE value. WIDTH=n 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: Remarks
Objects can be submitted in forms. See INPUT.
This element is a block element. Both the start and end tags are required.
Scripting Object
See Also
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.