HTMLDataElement.value

HTMLDataElement 接口的 value 属性返回反映   value HTML 属性的DOMString

Syntax

var aValue = htmlDataElement.value
htmlDataElement.value = aValue

Value

A DOMString.

Specifications

Specification Status Comment
HTML Living Standard
HTMLDataElement.value
Living Standard
HTML5
value
Recommendation

Browser compatibility

Update compatibility data on GitHub
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 No support NoWebView Android Full support 62Chrome Android Full support 62Firefox Android Full support 22Opera Android Full support 46Safari iOS No support NoSamsung Internet Android No support No

Legend

Full support  
Full support
No support  
No support