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; 100px;"/>

  

 

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

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

原文地址:https://www.cnblogs.com/wqing/p/3376406.html