onBlur事件与onfocus事件(js)

input name=""  type="button" onFocus="arrowTop_2()" onBlur="arrowLeave_2()" onmousemove="arrowTop_2()"  onmouseout="arrowLeave_2()" width="100" style=" border:1px #ff0000 solid; width:100px;"/>

  

 

onFocus事件就是当光标落在文本框中时发生的事件。

onBlur事件是光标失去焦点时发生的事件。

你可能感兴趣的:(focus)