失去焦点的动作: 比如消除按钮上的那个虚线框(点中时):
<input type=button value=ok>
<input thpe=button value=ok onfocus="blur()">

解决方案 »

  1.   

    <input type=text onblue="window.confirm('失去焦点');">
    鼠标移动到文本框内,只要鼠标在别的地方点击了或者按下了Tab键就会触发.
    此事件可以用来文本框值的效验
    <input type=text onblue="if(this.value==''){window.alert('禁止为空');this.focut();}">
      

  2.   

    to centurybobo(大笨鸟) 我这里是用于子菜单
      

  3.   

    to:gjd111686(数字金刚) 
     我说得是blur(),不是onblue呀?
    to:meizz(梅花雪) 
     收分.