国产chinesehdxxxx野外,国产av无码专区亚洲av琪琪,播放男人添女人下边视频,成人国产精品一区二区免费看,chinese丰满人妻videos

App下載
首頁(yè)javascriptselectJavascript Form - 如何獲取用戶為文件上傳輸入框選擇或輸入的文件

Javascript Form - 如何獲取用戶為文件上傳輸入框選擇或輸入的文件

我們想知道如何獲取用戶為文件上傳輸入框選擇或輸入的文件。

 
<html>
<body>
    <script language="JavaScript">
    function showFile(){
         var input = document.form1.uploadbox.value;
         console.log("The filename entered is: " + input);
    }
    </script>
    <form name="form1">
    Please select a file.
    <input type="file" name="uploadbox">
    <br><br>
    Click on the button to see the value of the FileUpload object.
    <br>
    <input type="button" value="Submit" onClick=showFile()>
    </form>
</body>
</html>