August 1999
Intermediate to advanced
1488 pages
72h 53m
English
password.blur()
The blur method for the Password object is used to remove the focus from the password box.
Listing 7.414 shows an example of how the focus is removed from the password box.
<html>
<head>
<title> Example of the blur method of the password object</title>
</head>
<body>
<script language="JavaScript">
<!--Hide
// function that shifts focus when the button is clicked
function shift(){
document.form1.pass.blur();
document.form1.txt.value="Get Focus";
}
// End Hide --->
</script>
<form name="form1"> <input type="PASSWORD" Name="pass" size=10> <br> <input type="Text" name="txt" size=10> ... |
Read now
Unlock full access