SaRiD
Programmer
- Apr 19, 2003
- 45
Hi
Hopefully this is nice and simple.
Basicly I have a script, which is working fine, but I want it to run first thing once the page has finished LOADING.
The script I want to run hides a few fields on the page. The problem is, is that the fields haven't loaded yet so when the script has run an error is appearing saying the object doesn't exist. After the page has loaded if I execute the script (say on an onclick event) it does what it should do.
Also for other reasons (which I don't really want to get into) I don't want to use a stylesheet to automaticly make the fields hidden.
Make sense?
Hopefully this is nice and simple.
Basicly I have a script, which is working fine, but I want it to run first thing once the page has finished LOADING.
The script I want to run hides a few fields on the page. The problem is, is that the fields haven't loaded yet so when the script has run an error is appearing saying the object doesn't exist. After the page has loaded if I execute the script (say on an onclick event) it does what it should do.
Also for other reasons (which I don't really want to get into) I don't want to use a stylesheet to automaticly make the fields hidden.
Make sense?