Hi Guys,
I am trying to get an iframe to refresh every 30 seconds or so but I'm not getting anywhere.
This is the code I have so far and I'm hoping you guys can point out the problem which I have no doubt is very simple.
I am trying to get an iframe to refresh every 30 seconds or so but I'm not getting anywhere.
This is the code I have so far and I'm hoping you guys can point out the problem which I have no doubt is very simple.
Code:
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>BNL Team Studio</title>
<style type="text/css">
body {
background-color: #FFFFFF;
}
</style>
</head>
<body>
<script>
window.setInterval("reloadIFrame();", 30000);
function reloadIFrame() {
document.frames["gdocs"].location.reload();
}
</script>
<img src="http://team.bnlproductions.co.uk/wp-content/uploads/10402900_731387893579539_2034696032886340019_n.jpg" alt="BNL Productions" />
<p><iframe width="1500" height="700" frameborder="0" name="gdocs" scrolling="no" src="https://docs.google.com/spreadsheet/pub?*******y4d-dE5PRlZBdWFydmJscW9xeXpvWVByZ1E&single=true&gid=4&output=html&widget=true"></iframe><br>
<iframe src="http://www.bbc.co.uk/radio/player/bbc_radio_one" width="380" height="150" frameborder="0" ></iframe>
</p>
</p>
</iframe></p>
</body>
</html>