FileUpload.onBlur : FileUpload « Form « JavaScript Tutorial






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>








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