For the record:
If you check the HTML spec, you'll discover that <SCRIPT> tags aren't
allowed within <HEAD> tags.  Most browsers handle them, but YMMV.  (Last
time I tested it, Mozilla (aka Netscape 6) didn't even display pages with
scripts in the header because it's invalid html.  I couldn't convince anyone
that it was important enough to fix, either.)

        - Theo

-----Original Message-----
From: Sheridan Saint-Michel [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 20, 2001 10:27 AM
To: php-general
Subject: Re: [PHP] Stoping Frame Breakers

I would actually suggest JavaScript, rather than PHP here.
Try putting something like

<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
  if (parent.location != "";)
    window.location = "";;

In the <Head> of your framed pages (not you frameset page)

Note: If your Frameset page is a default page (You can get to it
using either or you need to
change the script to

<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
  if (parent.location != ""; &&
parent.location !=";)
    window.location = "";;

Let me know if that helps!

----- Original Message -----
Sent: Thursday, July 19, 2001 10:21 PM
Subject: [PHP] Stoping Frame Breakers

   Does any one know how to stop people breaking frames?!?
 - James "ReDucTor" Mitchell

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to