IFRAME CONTENT page 4
Can't get here from there!  Iframe Redirect Script!

This webpage has a code in it that will not allow you to stay connected to the page unless you came in through the iframe!

The code checks  to  make sure you have the frameset page and if you don't the window will reload taking your to the main page instead.  This is useful to stop people from entering your site on a page that you want to protect against outside linking.  

Try it.  Copy this address into your web browser and see what happens:  http://www.samisite.com/iframephotos/cantgetthere.htm

Each content page needs these lines of code:
<script type="text/javascript" src="iframe.js"</script>>
<body onload="detect();">

Then upload a file called iframe.js to the website using FTP software, into the same directory as the iframe. This file sends the visitor to the home page (index.htm) for the directory since that's the page with the iframe on it. If the iframe is in a different page, then identify that page in the code instead of index.htm

function detect()
{ var framesetpage = "index.htm"
   if (parent.location.href == window.location.href)
      parent.location.href    = framesetpage}