I want to find the size of jpg image in javascript i have done using activeXobject but it is not working on mozilla it only works on IE.
the code is this:

<script language="JavaScript">
function A()
var oas = new ActiveXObject("Scripting.FileSystemObject");

var d = document.form1.fsize.value;
var e = oas.GetFile("c:\\test.jpg");

var f = e.size;
alert(f + " bytes");
<form name="form1">
<input type="file" name="fsize">
<input type="button" name="c" value="SIZE" onClick="A();">

any body can help me without using this.