Coding Cookbook/Escape from encapsulation

JavaScript solution
Escape from frame encapsulation

if (top != self) { top.location.replace(document.location.href); };