Question on : image.onload(this.complete)

O

oliver gargour

Hello,

I was wondering if anybody knows why :

<img src="beta_solar_node.jpg" border="0" onload="alert(this.complete);">

return "false"

when

image.complete : Boolean value indicating whether the web browser has
completed its attempt to load the image.
image.onload : is invoked when the image has completed loading.

Any ideas??

Thanks
 
A

ASM

oliver gargour a écrit :
Hello,

I was wondering if anybody knows why :

<img src="beta_solar_node.jpg" border="0" onload="alert(this.complete);">

return "false"

when

image.complete : Boolean value indicating whether the web browser has
completed its attempt to load the image.

never I saw that to work ...
or ... never I understood what that could mean ...
 
R

RobG

Hello,

I was wondering if anybody knows why :

<img src="beta_solar_node.jpg" border="0" onload="alert(this.complete);">

return "false"

when

image.complete : Boolean value indicating whether the web browser has
completed its attempt to load the image.
image.onload : is invoked when the image has completed loading.

Any ideas??

I would guess that the load event (in IE?) is fired before the
complete property value is set. In Firefox 2 it shows true, but then
again, so does:

alert( new Image().complete );


I think that counts as unreliable.
 

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

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top