Jump to content

Coding Cookbook/Escape from encapsulation

From Wikibooks, open books for an open world

JavaScript solution

[edit | edit source]

Escape from frame encapsulation

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