<html>
<body>
<input onkeyup="value=value.replace(/[^\d]/g,'') " onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" id="len" type="text" name="len" size=4 maxlength="4" value="4" title="输入数字" />
</body>
</html>
|