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
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
value | Chrome Full support 62 | Edge Full support 14 | Firefox Full support 22 | IE No support No | Opera Full support 49 | Safari Full support 10 | WebView Android Full support 62 | Chrome Android Full support 62 | Firefox Android Full support 22 | Opera Android Full support 46 | Safari iOS Full support 10 | Samsung Internet Android Full support 8.0 |
Legend
- Full support
- Full support
- No support
- No support