Radio.blur()

JavaScript 1.0+, JScript 1.0+ Nav2+, IE 3+, Opera3+ Syntax

							radio.blur()

Description

The blur() method of the Radio object is used to remove the focus from the check box.

Example

Listing 7.431 shows how the blur() method is used to remove focus from the radio button. When the Remove Focus button is clicked, the focus is removed from the radio button and a text message is displayed.

Listing 7.431 Example of the blur() Method
 <html> <head> <title> Example of the radio blur method</title> </head> <body> <script language="JavaScript"> <!--Hide // function removes focus from the button function change(){ document.form1.button1.blur(); document.form1.text1.value="Focus removed from button"; } // End Hide ---> </script> <form ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.