79546718

Date: 2025-03-31 16:14:50
Score: 1
Natty:
Report link

Using a button with JavaScript: A button can be placed inside mypage.html that closes the iframe:

<button onclick="closeIframe()">Close</button>
<script>
        function closeIframe() {
                 window.parent.document.querySelector('.modal').remove();
        }
</script>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: pedram mojibi