<html>
<body>
<input type="TEXT" οnblur="return GoCheck(this);" id ="t1" />
</body>
</html>
<script>
function GoCheck(obj)
{
var r = new RegExp(/[^/x00-/xff]+/gi);
var s = r.exec(obj.value);
if(s!= null)
{
obj.focus();
alert(‘输入有错误’);
var tg = document.selection.createRange();
var rg = tg.findText(s.toString());
if(rg)
{
tg.select();
}
}
}
</script>