This page is Not Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

setCustomValidity

Method of dom/HTMLElementdom/HTMLElement

Syntax

var object = object.setCustomValidity(error);

Parameters

error

Data-type
any

String containing a custom message.

Return Value

Returns an object of type DOM NodeDOM Node

Type: HRESULT

This method can return one of these values.

S_OK

Notes

Remarks

The following example sets a custom message if you type “fun” into the input field.

Syntax

Standards information

See also

Related pages

Attributions