Mega Code Archive

 
Categories / JavaScript DHTML / Form Control
 

TextField focus, blur, and click action

<HTML> <HEAD> <BODY> <A HREF="http://www.rntsoft.com" onMouseOver="window.alert('Sorry!');"> rntsoft.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>