87,910
社区成员
发帖
与我相关
我的任务
分享
<html>
<head>
<title> New Document </title>
<script type="text/javascript">
function ChkForInputField(objCol)
{
if (objCol.value == "123")
{
alert("ChkForInputField");
objCol.focus();
//setTimeout(function(){
// document.getElementById(objCol.id).focus();
// },0);
}
}
</script>
</head>
<body>
<select size="10" style="width:190;" border="0">
<option>1111111</option>
<option>1111111</option>
<option>1111111</option>
</select>
<br><br>
<input type="button" value="test" >
<br><br>
<input type="text">
<br><br>
input(123):<br><input type="text" value="" id="test_onblur" onblur="ChkForInputField(this);"/>
</body>
</html>