Thread: Framed?

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    23
    Rep Power
    0
    Anyone who knows how to check if the document is framed?
    For example, if the document is in a frameset, then proceed to the redirection to special.htm if it is not, then display a message on the document.

    ------------------
    C.K.C.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 1999
    Posts
    114
    Rep Power
    16
    That's really a client-side issue which PHP can't detect because it runs on the server.

    Using JavaScript, you can tell if you're framed like this:

    if (self.top != self) {
      // You're framed
    }


    -- Christopher

Similar Threads

  1. internal link on framed page question
    By zoite in forum HTML Programming
    Replies: 1
    Last Post: December 12th, 2003, 02:54 AM
  2. Replies: 2
    Last Post: November 18th, 2003, 06:43 AM
  3. open a page in a framed window automatically.
    By hkccm in forum HTML Programming
    Replies: 1
    Last Post: October 24th, 2003, 01:16 PM
  4. framed page feature
    By fmh002 in forum ASP Programming
    Replies: 1
    Last Post: July 14th, 2003, 04:48 PM
  5. opening new screen from Framed screen
    By kishorekaisna in forum HTML Programming
    Replies: 2
    Last Post: October 21st, 2002, 12:19 AM

IMN logo majestic logo threadwatch logo seochat tools logo