PDA

View Full Version : Break out of frames.


InfiniteWebby
08-26-2003, 04:38 AM
Im not very good at javascript so how do I go about making my forums "break out of frames" especially the hotmail email links that bar at the otp is really annoying. If it is possible.

Erwin
08-26-2003, 06:00 AM
Put this anywhere in your header template:


<script language="JavaScript">
<!--
if (parent.frames.length > 0)
{
parent.location.href = location.href;
}
-->
</script>

Erwin
08-26-2003, 06:01 AM
Or another method is to put this in your headinclude template:


<script language= "JavaScript">
<!--Break out of frames
if (top.frames.length!=0)
top.location=self.document.location;
//-->
</script>


Use only one of the above, whichever you prefer.

InfiniteWebby
08-26-2003, 06:59 AM
thanks alot, worked like a charm

is there any reason why you couldn't use it here because hotmail frames are really annoying