Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Image Exists? 1

Status
Not open for further replies.

sleuth

Programmer
Jan 12, 2001
134
US
I have an iframe that's always refreshing, sometimes it dies on a bad connection, page can not be displayed kind of die. So what I was thinking is print a gif in the iframe and if the gif doesn't exist when the user does something it'll reload the iframe. Make sense??

So question being, how could I check for the existence of an image?

or better yet, skip all that and just check if the iframe is loaded, which I thought wasn't possible.

Thanks,

Tony "Java?? Umm, I think that's the stuff I drink while I'm coding perl."
 
try image.loaded

exceuse my drunkemness ;0
b2 - benbiddington@surf4nix.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top