Forum Moderators: open
http://www.webmasterworld.com/forum91/567.htm
here's the code to go on content page headers:
<script language="JavaScript" type="text/javascript">
badURL = document.URL
passpage = badURL.substring(badURL.lastIndexOf("/")+1, badURL.length)
if (top.location == self.location)
{
location.replace("index.php?" + passpage);
}
</script>
and here's the write code that writes the i-frame code into wherever you want it.
<script language="JavaScript" type="text/javascript">
origURL = parent.document.URL
contentURL = origURL.substring(origURL.indexOf('?')+1, origURL.length)
if (contentURL!= origURL)
document.write('<iframe src=\"' + contentURL + '\" name="main" width="666" height="413" frameborder="0"></iframe>') ;
else
document.write('<iframe src="main.php" name="main" width="666" height="413" frameborder="0"></iframe>') ;
</script>
So it'll send it to a default page if this is indeed your index page you are working with, as in my case.