HTMLObjectElement:validationMessage 属性
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since December 2018.
HTMLObjectElement
接口的 validationMessage
只读属性返回一个表示描述控件不满足的验证约束(如果有的话)的本地化消息字符串。如果控件不是约束验证(willValidate
是 false
)的候选者,或者它满足其约束,则此字符串为空。
值
一个字符串。
规范
Specification |
---|
HTML # dom-cva-validationmessage-dev |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
validationMessage |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on 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.