FileUpload.onBlur : FileUpload : Form JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Form » FileUpload »

 

FileUpload.onBlur









Syntax








onBlur="command"



The onBlur event handler notifies you when the focus is removed from an upload box.












<html>
    <head>
    <title>Using the onBlur event handler</title>
    </head>
    <body>
    <script language="JavaScript">
    <!--
    function inform(){
         document.form1.msg.value="File submitted and focus removed from FileUpload object";
    }
    -->
    </script>
    <form name="form1">
    Please choose a file to upload to the server.
    <br><br>
    <input type="file" onBlur= 'inform()'>
    <br><br>
    Click on the text box.
    <br><br>
    Message:
    <input type="text" name="msg" size="50">
    </form>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Form
» FileUpload