This
code calls the function:
Enter Email Adress: <input type="text" value="" name="userEmail"
onBlur=addCheck()>
<input type="button" value="submit">
This code defines
the function:
<script language="javascript">
function addCheck() {alert("Please check email details are correct
before submitting")}
</script>
In this example,
the onBlur event handler executes the alert command on when the
form element loses focus. This occurs when the user clicks
outside the form or uses the TAB key.
The onBlur is also an event handler for: Button, Checkbox, FileUpload,
Layer, Password, Radio, reset, Select, Submit, Text, TextArea, Window.
|