• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 5. Design-O-Mite!: Explosive Lay... > Keeping Frames in Their Place

Keeping Frames in Their Place

Because framesets are comprised of separate pages, it’s entirely possible for a user to browse directly to a page—from a search engine, for example—and have no idea it’s supposed to be part of a frameset. One way to handle this problem is to put this code in the <head> of every file in the frameset:

<script language="JavaScript">
if (top == self) self.location.href = "FramesetFileName";
</script>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint