1. Tech

Your suggestion is on its way!

An email with a link to:


was emailed to:

Thanks for sharing About.com with others!

Frame Breakout

1. Keep a page out of Frames

clr gif
More of this Feature

Selective Breakout Force Reload

If you don't like the extra overhead of loading multiple pages that is associated with using frames then this tip is for you.

To stop your page from loading into one frame of someone else's frame based web page just insert the following Javascript into the <head> section of your page

<script type="text/javascript">
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.

See More About

©2016 About.com. All rights reserved.