Skip to content
WJunction - Webmaster Forum

iFRAME reloading

Status
Not open for further replies.

TechPro

Established Member
140
2009
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>
 
PHP:
<meta http-equiv="refresh" content="5" />

content="5" <=== This is time in sec ( this case 5 sec)
 
the problem is I don't have control over the iframe.html , I need to call some function from the iframe tag itself?
 
Status
Not open for further replies.

About the author

T
Established Member · Joined
Uploading / Coding You!
140
Messages
0
Reactions
204
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom