FileUpload.type : FileUpload : Form JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Form » FileUpload »

 

FileUpload.type







The type property represents the TYPE attribute of the HTML tag used to create the upload box.












<html>
    <head>
    <title>Using the type property of the FileUpload object</title>
    </head>
    <body>
    <script language="JavaScript">
    <!--
    function getType(){
         var mytype = document.form1.uploadbox.type;
         alert("The input box type is: " + mytype);
    }
    -->
    </script>
    <form name="form1">
    <input type="file" name="uploadbox">
    <br><br>
    Click on the button below.
    <br>
    <input type="button" value="Get Type" onClick='getType()'>
    </form>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Form
» FileUpload