1 2 3 4 5 6 7 8 9 10 11 12 13 14
<!DOCTYPE html> <html> <body> <script> window.onload = function() { try { top.location = "iframe-that-send-message-to-the-opener.html"; } catch(e) { top.postMessage("cannot navigate", "*"); } } </script> </body> </html>