August 1999
Intermediate to advanced
1488 pages
72h 53m
English
onFocus="command"
The onFocus event handler of the FileUpload object notifies you when the focus is set on the upload box.
In Listing 7.249, the onFocus event handler is used to notify the user when the focus is moved to the upload box. If the user sets the focus to the FileUpload box, a message is displayed. If the user removes the focus from the FileUpload box, another message is displayed.
<html> <head> <title>Using the onFocus event handler</title> </head> <body> <script language="JavaScript"> <!-- Hide // function that displays a message whenever focus is set on the FileUpload // box. function showMsg1(){ ... |
Read now
Unlock full access