CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2005
    Location
    マレーシア
    Posts
    155

    Refreshing an iframe with the same page programatically

    On my web page, there is a iframe with a page loaded (from the same domain). There is another button on the web page. When this button is clicked, i want the iframe refreshed with the same page. How can i achieve this?

    Another thing to note is that, I do not know the url of the web page displayed in the iframe at any given time.
    Ai nò mai speling sùks, bùt ai du it mainfuli
    http://www.geocities.jp/juuhassai/i_rouseiji.html

  2. #2
    Join Date
    Sep 2006
    Posts
    28

    Re: Refreshing an iframe with the same page programatically

    This is confusing, can you give us an example?

  3. #3
    Join Date
    May 2002
    Posts
    10,943

    Re: Refreshing an iframe with the same page programatically

    If the web page in the iframe is not in your domain, you will not have access writes to use JavaScript on it. For example if the iframe url is http://www.google.com, you cannot refresh it using JavaScript. If it is in the same domain as your page not in the iframe, use...

    Code:
    IFRAMENAME.location.reload()
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured