You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
415 B
25 lines
415 B
<public:component lightweight="true">
|
|
|
|
<script language="javascript">
|
|
|
|
function CheckIsDigit()
|
|
{
|
|
var iCode = event.keyCode ;
|
|
|
|
event.returnValue =
|
|
(
|
|
( iCode >= 48 && iCode <= 57 ) // Numbers
|
|
|| (iCode >= 37 && iCode <= 40) // Arrows
|
|
|| iCode == 8 // Backspace
|
|
|| iCode == 46 // Delete
|
|
) ;
|
|
|
|
return event.returnValue ;
|
|
}
|
|
|
|
this.onkeypress = CheckIsDigit ;
|
|
|
|
</script>
|
|
|
|
</public:component>
|