Submit.blur() : submit button : Form JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Form » submit button »

 

Submit.blur()







The blur() method removes the focus from the submit button.












<html>
    <head>
    <script language="JavaScript">
    <!--
    function removeFocus(){
      document.myForm.mySubmit.blur();
    }
    -->
    </script>
    </head>
    <body>
    <form name="myForm">
      <input type=TEXT value="Hello, World!" name="myText">
      <input type=SUBMIT value="Click to Remove Focus" name="mySubmit" onClick="removeFocus()">
    </form>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Form
» submit button