Hopefully I can make this clear for any of you to help with this.

I am running on my local pc a local html file. I have this local html file displaying news feeds from various sources. In addition, the local file is pulling images and contect from external domains.

Is there a javascript, or html code that will allow my local html file to check to see if the external domains are active. If they happen to go down, I end up with blotchs on my local html site due to the images or text not appearing.

My goal is for the local html file to check to see if the external domains are alive - (perhaps by looking for a small gif). If the external domain is down, the script of code will redirect my local webpage to an existing html webpage that is stored locally. The existing html webpage will bring up default content.

Does anyone know how to code this? If so, would you be so kind as to paste your code so I can use it?

Thank you!