How would I use php to relace this java script?
to break a page out of a frames
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
if (window != top) top.location.href = location.href;
// End -->
</SCRIPT>
</CENTER>
<!-- Script
Been searching for it...
Oz
break out of Frames
Moderator: General Moderators
- EvilWalrus
- Site Admin
- Posts: 209
- Joined: Thu Apr 18, 2002 3:21 pm
- Location: Springmont, PA USA
you may use
within the html-page
or try sent with header()
both are (for heaven's sake) a bit unreliable. The second more than the first.
Since I hate it when pages pop up fullscreen unasked, I beg you to use it only where it helps users - not to nag them.
Code: Select all
<META HTTP-EQUIV="Window-target" CONTENT="_top">or try
Code: Select all
Window-target: _topboth are (for heaven's sake) a bit unreliable. The second more than the first.
Since I hate it when pages pop up fullscreen unasked, I beg you to use it only where it helps users - not to nag them.
- James Pelow
- Site Admin
- Posts: 51
- Joined: Sat Jun 01, 2002 5:28 am
- Location: Killiney, Co. Dublin, Ireland
- Contact:
Moo!!! I never know what to put here
If it's from within you're own website then it's quite simple.
On the page that the link it coming from, that is the frame with the flash, add:
if it's for every link of the page. Or if it's selective only for a few of the links add it to your a href
-James
On the page that the link it coming from, that is the frame with the flash, add:
Code: Select all
<base target="_top">Code: Select all
<a href="noframepage.php" target="_top">