PDA

View Full Version : refreshing an iframe


hypedup.co.uk
07-12-2002, 09:24 PM
hi, is it possible to have a script that refreshes an iframe thats in this page every minute? if so, can anyone tell me the code? thanks, paul

Cloudski
07-12-2002, 09:58 PM
In the scr for your iframe, put this in the head of the html file.

<meta http-equiv="refresh" content="60; URL=youriframe.html">


That will refresh the page every 1 minute... be sure to change youriframe.html to whatever the file is that your iframe's src is..

Hope that helps
:D

hypedup.co.uk
07-12-2002, 11:16 PM
cheers mate but the problem is i dont have access to change the html of the iframe and so need to tell it to refresh using the page that its on. any ideas?

joh6nn
07-12-2002, 11:28 PM
window.frames['iframeName'].location.reload();

wouldn't happen to be framing someone else's content, would you?

hypedup.co.uk
07-12-2002, 11:41 PM
cheers for that, i did actually just find out that myself just as you sent that! im not framing someone elses content, i am using a tagboard but want to make it refresh so any new messages get displayed.