FileUpload.onChange : FileUpload : Form JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Form » FileUpload »

 

FileUpload.onChange









Syntax








onChange="command"



The onChange event handler notifies you when the upload box information has been changed.












<html>
    <head>
    <title>Using the onChange event handler</title>
    </head>
    <body>
    <script language="JavaScript">
    <!--
    function inform(){
        document.form1.msg.value = "Filename has been changed";
    }
    -->
    </script>
    <form name="form1">
    Please choose a file.
    <input type="file" name="uploadbox" size="35" onChange='inform()'>
    <br><br>
    Message:
    <input type="text" name="msg" size="40">
    </form>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Form
» FileUpload