Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: IFrame Refresh

  1. #1
    Regular Coder
    Join Date
    Jul 2003
    Location
    New Zealand
    Posts
    435
    Thanks
    1
    Thanked 0 Times in 0 Posts

    IFrame Refresh

    how do I refresh an iframe using onclick="" ?
    <a href="page.asp" onclick="document.fact.refresh()">link</a>

    ? that's my code so far, and fact is the name of my iframe.. I want it to refresh it and goto the link aswell.

    Just so you know, I have two iframes, one for content and one for facts, which I want to change at regular intervals (page change)

    Thanks in advance

  • #2
    Regular Coder
    Join Date
    Jul 2003
    Location
    Massachusetts
    Posts
    472
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Code:
    <a href="page.asp" onclick="document.frames['fact'].window.location.reload();">Link.</a>
    Moderator @ WebDeveloper.com
    Mentor @ WebXpertz.net

  • #3
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,068
    Thanks
    0
    Thanked 256 Times in 252 Posts
    or
    <a href="page.asp" onclick="top.frames['fact'].location.reload();">Link</a>
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #4
    Regular Coder
    Join Date
    Jul 2003
    Location
    New Zealand
    Posts
    435
    Thanks
    1
    Thanked 0 Times in 0 Posts
    thanks


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •