Radio.blur() : Radio Button : Form JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Form » Radio Button »

 

Radio.blur()







The blur() method removes the focus from the check box.












<html>
    <head>
    <title> Example of the radio blur method</title>
    </head>
    <body>
    <script language="JavaScript">
    <!--
    function change(){
        document.form1.button1.blur();
        document.form1.text1.value="Focus removed from button";
    }
    -->
    </script>
    <form name="form1">
    <input type="radio" name=button1 CHECKED>Box 1
    <br>
    <input type="radio" name=button2>Box 2
    <br>
    <input type="button" value="Remove Focus" onClick='change()'>
    <br>
    <input type="text" name="text1" size=15>
    </form>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Form
» Radio Button