Click to See Complete Forum and Search --> : Is it possible to check wether a page is fully loaded?
Highmad
04-14-2003, 09:19 AM
Is it somehow possible to check with javascript the loading-status of a page. I want to display a progress bar during the loading-progress of the page and when the page is completely loaded, it should be displayed. Is this possible?
Greetings,
Highmad
gil davis
04-14-2003, 09:33 AM
No. The only thing available to you is the onload event, which triggers when the load is finished.
viravan
04-14-2003, 09:46 AM
Hi G.D......
IMHO, if the entire page is created entirely with JavaScript (e.g., using document.write), you can add a series of statements to display the time it takes to get from point 1 to point 2 to point 3.....etc. Once the info has been gathered, you can build your progressbar accordingly. This of course will give you only a rough guage because the actual loading time will vary depending on the traffic on the net.
Frankly, I am not too sure why anyone would need a progressbar for a JavaScript or an HTML page because the browser usually have a built-in progressbar. I use a progressbar only when I load a humongous applet.
:)
V.V.
gil davis
04-14-2003, 09:57 AM
I wouldn't think that the overhead for such a scheme would be worth the effort for the effect. You may never see it in some circumstances, anyway. I cannot imagine where you would display such a thing, except on the status bar, and it is already showing the progress of the download process.