[Javascript] Disable controls

Dan Costea costea.dan at ssi-schaefer.ro
Fri Aug 9 01:23:37 CDT 2002


I don't know how is your page generated, but can't you writte them disabled
in the first place? And on "onload" event of the "body" tag, you can call a
function that enables all your elements (for IE, this will do: for (i in
document.all) document.all[i].disabled = false;)

Dan.


----- Original Message -----
From: "Goga Stefan" <gogastefan at yahoo.com>
To: <javascript at LaTech.edu>
Sent: Friday, August 09, 2002 8:59 AM
Subject: [Javascript] Disable controls


> Hi!
> I have some controls on a page (input, anchor,
> select,etc). I don't know how many (They are selected
> from database).
> How do I disable all, and I make them enable after the
> page is loading.
> Stefan Goga.
>
>
> __________________________________________________
> Do You Yahoo!?
> HotJobs - Search Thousands of New Jobs
> http://www.hotjobs.com
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript




More information about the Javascript mailing list