body onload

A

Allen

I have more than one body onload function:

<body onload="FP_preloadImgs
(/*url*/'images/button2.jpg', /*url*/'images/button3.jpg')
">
AND
<body onload="init()">
Is this the correct way to express it? It doesn't work.

<body onload="init(); FP_preloadImgs
(/*url*/'images/button2.jpg', /*url*/'images/button3.jpg')
">
Thanks for any help.
 
M

Murray

Try reversing them -

<body onload="FP_preloadImgs(/*url*/'images/button2.jpg',
/*url*/'images/button3.jpg');init()">
 
C

Colette

What does body onload do?

Colette
-----Original Message-----
Try reversing them -

<body onload="FP_preloadImgs (/*url*/'images/button2.jpg',
/*url*/'images/button3.jpg');init()">


--
Murray




.
 
M

Murray

It fires when the page has been completely fetched from the server. It's a
way of delaying certain other events until that event (the body onLoad one)
has fired, e.g.,

<body onLoad="DoThisAfterThePageHasBeenFetched"...>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top