<class home>  <Jscript>   <back   next>

Keeping Frames in Their Framesets

Sometimes a user can get to an individual frame through a search engine (yahoo.com, google.com) without seeing your entire frameset layout. To keep this from happening do the following below:


1. In the head section of your page type in:

<script type="text/javascript" language="javascript">

If (top.location!="frameset.url")
{top.location.href="frameset.url"}

</script>

 

explained:

-this should be put in all frame pages, except the main frameset page (mother page that defines all the frame children).
-"frameset.url" is the url to the main frameset (mother page that defines all the frame children) that you want loaded.