Reset.onBlur

JavaScript 1.1+, JScript 1.0+ Nav3+, IE 3+, Opera3+ Syntax

onBlur="command"

Description

The onBlur event handler for the Reset object is an event handler that specifies when the focus has been removed from the Reset button.

Example

In Listing 7.451, the onBlur event handler is used.

Listing 7.451 Using the onBlur Event Handler
 <html> <head> <title> Example of the reset onBlur event handler</title> </head> <body> <script language="JavaScript"> <!-- Hide function setMsg(){ document.form1.text1.value = "Focus was removed from the reset object"; } // End Hide ---> </script> <form name="form1"> Click the reset button and then click in a text area. <br><br> Enter Name: <input type="text" Name="name" Size=15> <br> Enter Phone: ...

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.