August 1999
Intermediate to advanced
1488 pages
72h 53m
English
fileupload.select()
The select() method of the FileUpload box is used to select the input area of the upload field.
Listing 7.250 shows an example of how the select() method is used to select the input text box of the FileUpload box.
<html> <head> <title>Using select() method of the FileUpload object</title> </head> <body> <script language = "JavaScript"> <!-- Hide function enterName(){ // selects the input area of upload box when button is clicked. document.form1.uploadbox.select(); } // End Hide ---> </script> <form name="form1"> <input type="file" name="uploadbox"> <br><br> <input type="button" value="Go ... |
Read now
Unlock full access