function getFileSize() {
var filePath = document.getElementById("file").value;
var fso = new ActiveXObject("Scripting.FileSystemObject");
var file = fso.getFile(filePath);
alert(fso.FileExists(filePath));
alert(file.size);
}
</script>
<body>
<input type="file" name="file" >
</body>