Coding Cookbook/Escape from encapsulation

From Wikibooks, open books for an open world
Jump to: navigation, search

JavaScript solution[edit]

Escape from frame encapsulation

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