Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<html>
<head>
<script language="javascript">
function getFileInfo(fspec) {
if (document.all) {
var fso=new ActiveXObject("Scripting.FileSystemObject");
var f=fso.GetFile(fspec);
alert("file path : " + f.path);
alert("file size (bytes) : " + f.Size);
alert("file exists : " + fso.FileExists(fspec));
} else {
var f=new java.io.File(fspec);
netscape.security.PrivilegeManager.enablePrivilege('UniversalFileRead');
alert("file path : " + f.getPath());
alert("file size (bytes) : "+f.length());
alert("file isFile : "+f.isFile());
netscape.security.PrivilegeManager.disablePrivilege('UniversalFileRead');
}
}
</script>
</head>
<body>
<form name="frmtest">
<input type="file" name="fspec" onchange="getFileInfo(this.value);" /><br />
</form>
</body>
</html>