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.value' in that specification.
Living Standard
HTML5
The definition of 'value' in that specification.
Recommendation

Browser compatibility

DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
valueChrome Full support 62Edge Full support 14Firefox Full support 22IE No support NoOpera Full support 49Safari Full support 10WebView Android Full support 62Chrome Android Full support 62Firefox Android Full support 22Opera Android Full support 46Safari iOS Full support 10Samsung Internet Android Full support 8.0

Legend

Full support
Full support
No support
No support