SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Sep 2002
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need a JS that can work with iFrame

    Hi

    I posted this a few days back http://www.sitepointforums.com/showt...hreadid=112372 and after posting I realised that I can have the same effect if I load two separate pages in an iframe.

    Is there a javascript that can control the pages which an iframe loads? I need one which will load, let's say abc.html the first time, and when the page is refreshed, def.html.

    Thanks for any help given.

  2. #2
    SitePoint Zealot Saj's Avatar
    Join Date
    May 2003
    Location
    USA
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could try this:

    Code:
    parent.(iframe name).location.href="yourpage.html";


Bookmarks

Posting Permissions

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