Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

data attribute | data property

Sets or retrieves the URL that references the data of the object.

Syntax

HTML<element data="p" ... >
JavaScript

p = object.data

Property values

Type: String

the URL of the data.

Remarks

Windows Internet Explorer 8 or later. In IE8 Standards mode, the value of the object attribute depends on the context of the reference to the attribute. When read as a Document Object Model (DOM) attribute, object returns an absolute URL. The value specified by the page author is returned when object is read as a content attribute, when the page is displayed in an earler document compatibility mode, or when the page is viewed with an earlier version of the browser. For more information, see Attribute Differences in Internet Explorer 8.

In Microsoft Internet Explorer 6 and greater, this property applies to the comment object.

See also

comment
object
Reference
type
Conceptual
About the W3C Document Object Model

 

 

Show:
© 2014 Microsoft. All rights reserved.