<!DOCTYPE html>
<html>
<head>
    <script>
        window.addEventListener('hashchange', function () {
            window.parent.postMessage('hashchange', '*');
        });
    </script>
</head>
<body>
    This page posts a message to its parent on hashchange.
</body>
</html>