Reset.blur()

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

							reset.blur()

Description

The blur() method of the Reset object is used to remove the focus from the Reset button.

Example

Listing 7.445 shows an example of how the blur() method is used.

Listing 7.445 Example of the blur() Method
 <html> <head> <title> Example of the reset blur method</title> </head> <body> <script language="JavaScript"> <!-- Hide // displays a message when focus is removed from the reset button function showMsg(){ document.form1.msg.value="Focus removed from the Reset button."; } // End Hide ---> </script> <form name="form1"> Enter Name: <input type="text" Name="name" Size=15> <br> Enter Phone: <input type="text" Name="phone" Size=10> <br> Message: ...

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.