<html>
<head>
<title>PHP dan JavaScript</title>
<script language="JavaScript">
function onlyNumbers(evt){
var e = event || evt;
var charCode = e.which || e.keyCode;
if (charCode > 31 && (charCode < 48 || charCode > 57))
return false;
return true;
}
</script>
</head>
<body>
Masukan No Telepon : <br>
<input type="text" onkeypress="return onlyNumbers();">
</body>
</html>
PHP: only number
Started by usmanzm, Aug 22 2008 04:05 AM
2 replies to this topic
#1
Posted 22 August 2008 - 04:05 AM
|
|
|
#3
Posted 22 August 2008 - 08:10 AM
Hm, it doesn't work in Firefox. Doesn't use PHP at all. lol
Hm, what's the point?
Hm, what's the point?


Sign In
Create Account

Back to top









