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