mark103 Posted March 7, 2013 Share Posted March 7, 2013 Hi guys,Can you please help me, I want to find out how I can check on if statement using with javascript to see if the image on the webpage does exist then replace the image.Does anyone know how i can do this?thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/275390-how-to-check-image-on-if-statement/ Share on other sites More sharing options...
Psycho Posted March 7, 2013 Share Posted March 7, 2013 I'm not following. Are you including a URL from an external site for an image on your page and sometimes that URL isn't to a valid image? Quote Link to comment https://forums.phpfreaks.com/topic/275390-how-to-check-image-on-if-statement/#findComment-1417370 Share on other sites More sharing options...
requinix Posted March 7, 2013 Share Posted March 7, 2013 (edited) Duplicate. http://forums.phpfreaks.com/topic/275391-how-to-check-image-on-if-statement/ Edited March 7, 2013 by requinix Quote Link to comment https://forums.phpfreaks.com/topic/275390-how-to-check-image-on-if-statement/#findComment-1417371 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.