SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Aug 2004
    Location
    atlanta, ga
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation How do I kill the current frame? - Please help!

    Hello,

    I need to know how I can kill the current frame in a website that I am creating. Please go to http://ifpro.myfreeadssecret.com to see what I am doing.

    What I need to do is tell the link that says Click here to VIEW the FULL WEB SITE that appears just below now! to...

    (a) replace the frameset with whatever is in the bottom frame (called mainFrame)

    ...or...

    (b) tell the frameset to get rid of the top frame (topFrame)

    The problem is that with option a, I've found a script, but it only works with files that are on my server - but I NEED it to work for WHATEVER shows below because there is an order form that runs through ClickBank.

    I've also found a script (I think) that does option b, but only works for Netscape.

    Any help with this would be GREATLY appreciated!

    Thanks.

  2. #2
    SitePoint Member
    Join Date
    Aug 2004
    Location
    atlanta, ga
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, I found this little snippet elsewhere, but I'm not sure what I need to modify..

    Code:
    <script language="javascript">
    // The name of the other frame
      var frameName = 'test';
    // Assign the frame to a variable
      var frameFull = document.getElementById(frameName);
    // Get the URL
       var frameURL = frameFull.src;
    </script>
    The name of the bottom frame is mainFrame. Also, I need to know if I can set that variable to be the href to the link I spoke about in my previous post.


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
  •