Chapter 5: Frames, Frames, and More Frames

Return to Chapter 5


To use this script on your own page, click in the text area below, select all, and copy to grab the script. Then, just paste into your own page — and you're done.

Keeping a Page out of a Frame

See it run: Keeping a Page out of a Frame

Script 5.1

This is an HTML file that is the fabulous content that someone wants to hijack and put into their framed site.

Script 5.2

This JavaScript forces our content page to always be in a separate page, outside of a frameset.