You need the onmouseover and onmouseout (onfocus is for focusing the field, i.e. clicking in it or tabbing to it).
<input onmouseover="alert('Mouse is in here');" onmouseout="alert('mouse is not here');">
If you tell us why you need to do this, and what problem you are trying to solve we can be of more help.