This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>HTML - Convert numbers to words using JavaScript</title> | |
<script type="text/javascript"> | |
function onlyNumbers(evt) { | |
var e = event || evt; // For trans-browser compatibility | |
var charCode = e.which || e.keyCode; | |
if (charCode > 31 && (charCode < 48 || charCode > 57)) return false; |