How Do I Keep My Website From Being Viewed In a Frame?
on Thursday, January 11, 2007
Updated Friday, April 22, 2016
Certain websites, such as search engines or email providers, will forward to new web pages inside a frame so they can continue to show their own banner at the top of the page. This, in my humble opinion, is bad form--similar to popups.
Example: How to escape a frame and load your page in the browser
if (top != self)
top.location = location;