TextField focus, blur, and click action
<HTML>
<HEAD>
<BODY>
<A HREF="http://www.java2s.com" onMouseOver="window.alert('Sorry!');">
java2s.com!</A>
<P>
<FORM>
Phone Number:
<INPUT type="text" size="25" onFocus="window.alert('Format is xxx-xxxx.');">
<BR>
Name:
<INPUT type="text" size="25" onBlur="window.alert('onBlur!');">
<BR>
E-mail Address:
<INPUT type="text" size="25">
<P>
<INPUT type="button" value="Click Here." onClick="window.alert('onClick')";>
</FORM>
</BODY>
</HTML>
Related examples in the same category