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

is there any call before 'body onload'?

P: n/a
Hi NG

Is it possible to make a javascript call before "<body onload='...'>"?

What I'm doing is a preview of numerous images in an iframe and I want to
resize the iframe to match each picture. Normally I'd use the 'onload' (on
the src-page holding the image in the iframe) attrubute, but it's not called
until the picture has finished loading. I'd like to resize the iframe before
(or at the same time) the image starts loading.

Any ideas??
Med Venlig Hilsen

Ask Josephsen
Jul 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Ask Josephsen wrote on 30 aug 2004 in comp.lang.javascript:
Is it possible to make a javascript call before "<body onload='...'>"?


<script>alert(0)</script>
<body onload="alert(2)">
<script>alert(1)</script>

Elementary, my dear Ask?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress,
but let us keep the discussions in the newsgroup)

Jul 23 '05 #2

P: n/a
hehe

what a beauty :o)

thanks

--

Med Venlig Hilsen

Ask Josephsen
Partner og IT

web: www.MinReklame.dk

"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
Ask Josephsen wrote on 30 aug 2004 in comp.lang.javascript:
Is it possible to make a javascript call before "<body onload='...'>"?


<script>alert(0)</script>
<body onload="alert(2)">
<script>alert(1)</script>

Elementary, my dear Ask?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress,
but let us keep the discussions in the newsgroup)

Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.