shauny
05-06-2004, 03:35 PM
hi, i'm an absolute js noob, and was wondering if this can be done... i have a page which cannot be loaded in an iframe, as it contains this code:
<script language="JavaScript">
<!--
if (self != top)
{
alert('Page cannot be loaded inside frame...')
location.replace("http://www.google.com");
}
-->
</script>
so, i need self to equal top, or the page will be redirected. how can i do this?
<script language="JavaScript">
<!--
if (self != top)
{
alert('Page cannot be loaded inside frame...')
location.replace("http://www.google.com");
}
-->
</script>
so, i need self to equal top, or the page will be redirected. how can i do this?