Web Analytics Made Easy -
StatCounter refreshing an iframe - CodingForum

Announcement

Collapse
No announcement yet.

refreshing an iframe

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • refreshing an iframe

    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

  • #2
    In the scr for your iframe, put this in the head of the html file.
    Code:
    <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

    Comment


    • #3
      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?

      Comment


      • #4
        window.frames['iframeName'].location.reload();

        wouldn't happen to be framing someone else's content, would you?
        bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

        i am a loser geek, crazy with an evil streak,
        yes i do believe there is a violent thing inside of me.

        Comment


        • #5
          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.

          Comment

          Working...
          X