validationMessage

open override val validationMessage: String(source)

The validationMessage read-only property of the ElementInternals interface returns the validation message for the element.

MDN Reference