So far I've got this iframe to refresh every minute. What I would like to do is have the scr of the iframe be a variable. When the iframe loads to the main site if it find that the page cannot be dislayed then switch to the second site. I am very new to javascript and any help would be very appreciated. Thanks in advance.
<html>
<head><title></title></head>
<body>
<!--start refresh ackpage1 iframe-->
<script type=text/javascript>
function refresh()
{document.all.ackpage1.src = document.all.ackpage1.src;}
window.setInterval("refresh()",60000);
</script>
<!--end refresh ackpage1 iframe-->
<iframe src="https://www.sitehere.com" style="zoom:100%" id="ackpage1" name="ackpage1" width="490" height="390" scrolling="yes" align="right" frameborder="no" marginheight="0" marginwidth="0"></iframe>
</body>
</html>