FileUpload.handleEvent() : FileUpload : Form JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Form » FileUpload »

 

FileUpload.handleEvent()









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 objectn";
    }
    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>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Form
» FileUpload