A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/validationMessage below:

ElementInternals: validationMessage property - Web APIs

ElementInternals: validationMessage property

Baseline 2023

Newly available

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

Value

A string containing the validation message of this element.

Examples

In the following example the validation message is set with ElementInternals.setValidity(), and then returned with validationMessage.

this.internals_.setValidity({ valueMissing: true }, "my message");
console.log(this.internals_.validationMessage); // "my message"
Specifications Browser compatibility

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3