Auto-refresh frames in a web page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • classicb96
    New Member
    • Aug 2012
    • 1

    #1

    Auto-refresh frames in a web page

    Hello,

    I am trying to write a script that will auto-refresh several frames in a web page. Currently, the frames will refresh if you click a small button within the frame. I would like them all to refresh simultaneously. I want to avoid refreshing the entire page to achieve this.

    Is there a starter script I could try out? I'd like to do it in Safari or Firefox.


    Thank you very much in advance.
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    all frames of a webpage can be referred to from a collection, suppose you have a javascript in the top-scope then it would be:

    Code:
    window.frames
    now a script could loop through that collection and call a frame's:

    Code:
    frameReference.location.reload()
    method, to reload the current page in a frame. more info regarding a window's location property can be found here: https://developer.mozilla.org/en-US/...indow.location

    Comment

    Working...