<html>
<body>
  <input type="button" id="remove-parent" onclick="parent.remove();" value="Remove parent frame" />
  <input type="button" id="remove-top" onclick="top.remove();" value="Remove top frame" />
</body>
</html>
