Results 1 to 2 of 2

Thread: Break frames???

  1. #1

    Thread Starter
    Lively Member Nator's Avatar
    Join Date
    Nov 1999
    Location
    East Larryville, GA
    Posts
    80

    Break frames???

    May be a very easy question, but how do I force a page to break out of frames everytime its loaded? I have a login page I want to to redirect to is the user is not logged in, but if the redirecting page is in a frame, it puts the login page in the frame. I've seen pages do this before, but I can't seem to find one (at least one here at work) that busts up frames.

  2. #2
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    if (top.frames.count != 0){
    top.location = 'mysite.htm';
    }

    that should work

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