Crew algemeen |
|
Dit werkt in FF2, IE7 en IE6:
<script type="text/javascript">
window.onload = function() {
var numberObject = document.getElementById('number');
numberObject.onkeyup = function() {
numberObject.value = numberObject.value.replace(/[^0-9]/, '');
}
}
</script>
<input type="text" id="number" />
<script type="text/javascript"> window.onload = function() { var numberObject = document.getElementById('number'); numberObject.onkeyup = function() { numberObject.value = numberObject.value.replace(/[^0-9]/, ''); } } </script> <input type="text" id="number" />
|