Reset.blur() : Reset : Form JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Form » Reset »

 

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>
    <br>
    </form>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Form
» Reset