posted 19 years ago
I have code like this:
window.on_load=f_1(); //f_1 dynamically creates some text items.
in body tag on_load=f_2()
f_2() functions disables some of the items created by f_1 above depending on business logic.
Seems f_2 does not fire. However if I comment out f_1 on load f_2 in body tag does work, So it is not a syntax problem. I am thinking it is more timing issue. If I call f_2 within f_1 i.e. have only one onload function
I get error object not found.
How else can I do this?