View Full Version : direct hits

01-18-2005, 09:00 PM
for example: if google finds a content page of my site, and thus direct hits the page, but the page is actualy a content page for an iframe, can i place some code into the page that will enable the browser to load the index and thus menus and place the requested page into the frame back into the frame

the site is at

01-19-2005, 03:38 AM
Put this in each every page

<script type="text/javascript">
if (top == window) location.href = "index.asp?page=" + escape(location.href);

Then in index page, retrieve the querystring 'page' ang put it in the iframe source.
It is easier to do this if you are using a server-side language.

01-30-2005, 08:18 PM
er, not sure what to do, im still a pretty nubie as far as javascript goes, can you explain a little more step bt step with examples..

would be much appreciated