iFRAME reloading

Status
Not open for further replies.

TechPro

Active Member
140
2009
0
0
I wish to reload an iframe from the iframe tag.

is there a way you guys know of?

It's a football score card, which I need to reload from my side since I don't have control over the page :)

thanks :sun:
 
6 comments
You need auto refresh ?
Then
PHP:
<meta http-equiv="refresh" content="60" />
Or Button to refresh ?
Then
PHP:
<html>
<head>
<script type="text/javascript">
 
function Reload () {
var f = document.getElementById('iframe1');
f.src = f.src;
}
 
</script>
</head>
<body>
<iframe id="iframe1" height="200" width="300"
src="http://google.com"></iframe>
<br>
<input type="button" value="Reload" onclick="Reload();">
</body>
</html>
 
Status
Not open for further replies.
Back
Top