Frame Breakout1. Keep a page out of Frames |
|
More of this FeatureIf 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; </script> 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. |


