[Javascript] Disable controls

Alexander Yap alex.yap at str.com.au
Fri Aug 9 01:21:53 CDT 2002


Hi,

If the purpose is just to stop people clicking on the controls before the page is ready, you can try this:

1. Create a DIV big enough to cover all your controls, or even the entire page. This DIV may simply have a "Loading..." message.
2. Make this DIV visible and position it in front of your controls, with large z-index.
3. When your page has finished loading, make this DIV invisible.

I tried this before and it seemed to work ok. 

-- 
Alexander Yap
Melbourne, Australia



More information about the Javascript mailing list