0
<html>   
<head>   
<script>   
function A()    
{    
var oas = new ActiveXObject("Scripting.FileSystemObject");    
var d = document.a.b.value;    
var e = oas.getFile(d);    
var f = e.size;    
alert(f + " bytes");    
}    
     
</script>    
</head>    
<body>    
<form name="a">    
<input type="file" name="b">    
<input type="button" name="c" value="SIZE" onClick="A();">    
</form>    
</body>    
</html>   
<html>
<head>
<script>
function A() 
{ 
var oas = new ActiveXObject("Scripting.FileSystemObject"); 
var d = document.a.b.value; 
var e = oas.getFile(d); 
var f = e.size; 
alert(f + " bytes"); 
} 
  
</script> 
</head> 
<body> 
<form name="a"> 
<input type="file" name="b"> 
<input type="button" name="c" value="SIZE" onClick="A();"> 
</form> 
</body> 
</html>

this code is not working, i click the size button nothing is happen i checked ActiveXObject is not working
i am using IE
what is the reason for this

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by Stefan_Lam88
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.