Click to See Complete Forum and Search --> : document.fileSize


nroose
07-20-2003, 01:06 AM
I am working on an application that uses asp and javascript. I would like to know the size of each page when it gets loaded. I use document.fileSize, which, I know, is not a standard method, but it is a method in the MS DHTML spec. It works in IE 5.0, but not in IE 5.5 or IE 6.0. If I save the page and then view it, it works. I am trying to get the files size in a function that is executed on the event onload.

Thanks for any help you can provide.

- Nick

Nevermore
07-20-2003, 03:18 AM
Since JavaScript doesn't communicate with the server, I think you will have to either have the files on your hard drive, or use ASP to get the file sizes and use them as a JavaScript variable.