Name

DATA — NN 4 IE 3 HTML 4

Synopsis

DATA=”URL"

Optional

URL of a file containing data for the OBJECT element (as distinguished from the object itself). For data whose content type can be opened (and viewed or played) with any compatible object or plugin, the DATA and TYPE attributes are generally sufficient to launch the plugin and get the content loaded. But if the content requires a very specific plugin or ActiveX control, you should include a CLASSID attribute that points to the object’s implementation as well. In that case, you can specify the content type with either the CODETYPE or TYPE attributes. Relative URLs are calculated relative to the CODEBASE attribute, if one is assigned; otherwise the URL is relative to the document’s URL.

Example

<OBJECT DATA="proddemo.mpeg" TYPE="application/mpeg"></OBJECT>

Value

A complete or relative URL.

Default

None.

Object Model Reference

IE

[window.]document.elementID.data

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.