1. Keep a page out of Frames
If you don't like the extra overhead of loading multiple pages that is associated with using frames then this tip is for you.
if (top.location != self.location)
top.location = self.location;
This will ensure that your page gets reloaded in the top of the browser window removing all of the frames.
On the next page we'll look at how we can amend this script so that you can specify circumstances where you allow your page to appear in frames by making the frame breakout selective.
Note that this page is copied from the "Ask Felgall" website with the permission of the copyright owner.