Mega Code Archive

 
Categories / JavaScript Tutorial / Form
 

Reset blur()

The blur() method removes the focus from the Reset button. <html>     <head>     <title> Example of the reset blur method</title>     </head>     <body>     <script language="JavaScript">     <!--     function showMsg(){          alert("Focus removed from the Reset button.");     }     -->     </script>     <form name="form1">     Enter Name: <input type="text" Name="name" Size=15>     <br>     Enter Phone: <input type="text" Name="phone" Size=10>     <br>     <input type="reset" name=resetbutton value=Reset onBlur='showMsg()'>     <br>     </form>     </body>     </html>