昨天的沒說清楚..今天又來了.關於select and focus的問題
看了下面的代碼
</html>
<head>
<script language="JavaScript">
function fnTest(obj)
{
var strValue=obj.id;
if(strValue!="222")
alert("Error"+strValue);
document.all(strValue).select();
document.all(strValue).focus();
return ;
}
</script>
</head>
<body>
<input type="text" value="111" name="t1" id="i1" onblur="fnTest(this)"/>
<input type="text" value="111" name="t1" id="i2" onblur="fnTest(this)"/>
<input type="text" value="111" name="t1" id="i3" onblur="fnTest(this)"/>
</body>
</html>
在點了第一個text後.會報錯..請修改..可這個時候.在點其他的text.就會出現死循環..
幫忙解答!!!