By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,709 Members | 2,153 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,709 IT Pros & Developers. It's quick & easy.

onLoad inside <body> tag

mickey0
100+
P: 142
HI,
is it possible to do this? I'd like at first execute the ONE and then the TWO. Will it work?
Expand|Select|Wrap|Line Numbers
  1. <body onload="func1()","func2()"> </body>
  2.  
Jan 20 '08 #1
Share this Question
Share on Google+
2 Replies


stepterr
100+
P: 157
HI,
is it possible to do this? I'd like at first execute the ONE and then the TWO. Will it work?
Expand|Select|Wrap|Line Numbers
  1. <body onload="func1()","func2()"> </body>
  2.  

It might be best to only call your func1() from the onload event. And then at the end of func1() call func2().
Jan 20 '08 #2

gits
Expert Mod 5K+
P: 5,327
hi ...

of course you could call it at the end of function one ... or you could wrap both of them in a function three and call this function or you coul simply do:

[HTML]<body onload="func1(); func2();">
</body>[/HTML]

both of the functions will be called in the given order :)

kind regards
Jan 20 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.