首页javascriptfile_uploadJavascript Form - 如何处理焦点丢失事件为文件上传输入框

Javascript Form - 如何处理焦点丢失事件为文件上传输入框

我们想知道如何处理焦点丢失事件为文件上传输入框。

 
<html>
<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>