1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
<html> <body> <script> var success = 0; try { parent[name].success = 1; parent.postMessage(success ? "success" : "failure", "http://mochi.test:8888"); } catch (e) { parent.postMessage(e.toString(), "http://mochi.test:8888"); } </script> <p>Move on, nothing to see here...</p> </body> </html>