JavaScript Tutorial/Global/isFinite
Global.isFinite()
The isFinite() method is used to determine if a variable has finite bounds.
<source lang="javascript">
<html>
<body> <script lanuguage="JavaScript"> </script> <form name="form1"> Enter a number or character into the text box and then click the check value button to verify if the input is a number.
<input type="text" name="text1" size=3>
<input type="button" value="Check value" onClick="checkNum()">
</form> </body> </html></source>