The validationMessage read-only property of the HTMLObjectElement interface returns a DOMString representing a localized message that describes the validation constraints that the control does not satisfy (if any). This is the empty string if the control is not a candidate for constraint validation (willValidate is false), or it satisfies its constraints.


var String = HTMLObjectElement.validationMessage;



Specification Status Comment
HTML Living Standard
The definition of 'validationMessage' in that specification.
Living Standard Initial definition.

Browser compatibility

BCD tables only load in the browser