Loading Bar







This page demonstrates one way to implement a loading bar. This page will load a bunch of large images, so it takes some time.

We create a form element as a way of communicating with the user that is less annoying than alert():

Loading:

Also, there is a bar that will tell you how far it's got. The bar is made of div tags. Divs are html elements that have no meaning whatsoever - except what you choose to give them. Which makes them handy for this kind of thing.

Note the use of CSS style-sheets inside the div elements! Also note that this kind of code tends to break if there are any errors - either in the javascript, or in the html!

LOADING...