all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize
This topic has not yet been rated - Rate this topic

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.4Internet Explorer 10

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

 

 

Send comments about this topic to Microsoft

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.