HTMLDataElement.value

The value property of the HTMLDataElement interface returns a DOMString reflecting the value HTML attribute.

Syntax

var aValue = htmlDataElement.value
htmlDataElement.value = aValue

Value

A DOMString.

Specifications

Specification Status Comment
HTML Living Standard
The definition of 'HTMLDataElement' in that specification.
Living Standard No change
HTML5
The definition of 'value' in that specification.
Recommendation Initial definition.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support62 Yes22 No49 No
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support6262 Yes2249 No No

Document Tags and Contributors

Contributors to this page: jpmedley
Last updated by: jpmedley,