Back to frames

Technorealm. The UK web site design company

Free javascript

[One of a collection of free javascripts from www.technorealm.co.uk]

If your site is framed, some search engines can still index pages if meta tags have been set, and links set to them in your navigation. What this means is that your page can be listed in searches, and people can go straight to the page outside of your normal frameset. This may or may not be desirable, so, to force the page to load up the original index.html file (thereby allowing viewers to see your site as they should do), insert the following script into each page.

Place the following in the <head> tags of each page.

<script language="Javascript">
<!--
if (top == self) self.location.href = "index.html";
// -->
</script>

Obviously, if your index page is index.htm or something else, change the reference to suit.


www.technorealm.co.uk UK Web site design and graphics. A free resources site!