EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.

valueAsNumber property

Returns the input field value as a number.

This property is read/write.

HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.10.7.4

Syntax

JavaScript
object.valueAsNumber = ptr
ptr = object.valueAsNumber

Property values

Type: Floating-point

The value of the input element if a numeric value, or not-a-number (NaN) otherwise.

Standards information

See also

HTMLInputElement

 

 

Afficher:
© 2014 Microsoft