FileUpload.handleEvent() : FileUpload « Form « JavaScript Tutorial






Syntax

fileupload.handleEvent(event)

The handleEvent() method of the FileUpload object invokes the event handler for the specific event.

<html>
    <head>
    <title>Using the handleEvent method</title>
    </head>
    <body>
    <script language = "JavaScript">
    <!--
    function handleChange(evnt){
        alert("changed");
    }
    function displayText(){
         document.form1.msg.value += "Change made to object\n";
    }
    window.onchange = handleChange;
    -->
    </script>
    Choose a file:
    <br>
    <form name="form1">
    <input type="file" size="40" name="uploadbox" onChange='displayText()'>
    <br><br>
    <textarea name="msg" rows="10" cols="50"></textarea>
    </form>
    </body>
    </html>








10.8.FileUpload
10.8.1.FileUpload
10.8.2.FileUpload.blur()
10.8.3.FileUpload.focus()
10.8.4.FileUpload.form
10.8.5.Second Method of Referencing FileUpload Object Using the forms Elements Array
10.8.6.FileUpload.handleEvent()
10.8.7.FileUpload.name
10.8.8.FileUpload.onBlur
10.8.9.FileUpload.onChange
10.8.10.FileUpload.onFocus
10.8.11.FileUpload.select()
10.8.12.FileUpload.type
10.8.13.FileUpload.value
10.8.14.file Input Element