caynada
04-17-2003, 03:35 PM
Is it possible to have two onload events?
|
Click to See Complete Forum and Search --> : <body onload> caynada 04-17-2003, 03:35 PM Is it possible to have two onload events? Nevermore 04-17-2003, 03:40 PM Yes. You could just place them both in a function, though, to speed up loading (by a millisecond, unless it's really big DrDaMour 04-17-2003, 03:42 PM all hookable events can use the ; as a new line character so onLoad="code1;code2;code3" and all three codes will execute in taht order. alternatively you can do function loader(){ code1 code2 code3 } onLoad="loader()" esm 04-17-2003, 03:45 PM <body onLoad="fone();ftwo()"> just make sure the onload does not exist in the functions themselves. caynada 04-17-2003, 03:47 PM thanks to both of you for your help. I'll give it a wirl.:) webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |