<p><input type="text" name="T1" size="20" tabindex="1"></p>
  <p><input type="text" name="T2" size="20" tabindex="2"></p>
  <p><input type="text" name="t3" size="20" tabindex="3"></p>

解决方案 »

  1.   

    可以用tabIndex属性定义顺序,但如果不使用这个属性明确定义,光标会按控件的出现顺序移动。如果想让某个input得不到焦点,用这个blur()方法即可,例如:
    <input name=xxx type=text onFocus=this.blur();> 这样xxx就得不到焦点了。同理,让某个input不失去焦点可以用focus()方法,例如:
    <input name=yyy type=text onBlur=this.focus();> 这样yyy的焦点就出不去了。
    一般情况最好不要这样用,会给用户带来很大麻烦。