August 1999
Intermediate to advanced
1488 pages
72h 53m
English
fileupload.blur()
The blur() method of the FileUpload object is used to remove focus from the FileUpload box.
Listing 7.241 shows how the blur() method is used to remove focus from the upload box. When the OK button is clicked, the focus is removed from the upload box and a message is displayed.
<html> <head> <title>Using the blur() method of the FileUpload object</title> </head> <body> <script language="JavaScript"> <!-- Hide function showMessage(){ // Removes focus from the upload box and writes text document.form1.uploadbox.blur(); document.form1.textbox.value = "File Submitted"; } // End Hide ---> </script> <form name="form1"> ... |
Read now
Unlock full access