Coding Cookbook/Escape from encapsulation
JavaScript solution edit
Escape from frame encapsulation
if (top != self) { top.location.replace(document.location.href); };
Escape from frame encapsulation
if (top != self) { top.location.replace(document.location.href); };