August 1999
Intermediate to advanced
1488 pages
72h 53m
English
fileupload.type
The type property of the FileUpload object represents the TYPE attribute of the HTML <input> tag used to create the upload box.
Listing 7.251 shows how to access the type property. When the user clicks the Get Type button, an alert box appears indicating the type of input.
<html> <head> <title>Using the type property of the FileUpload object</title> </head> <body> <script language="JavaScript"> <!-- Hide // function informs the user what type of input the first element is. function getType(){ var mytype = document.form1.uploadbox.type; alert("The input box type is: " + mytype); } // End Hide ... |
Read now
Unlock full access