prompt.html (284B)
1 <script> 2 function handleEvent(e) { 3 var conf = window.prompt('Prompt Dialog'); 4 if (conf == null) { 5 window.parent.postMessage('pass', '*'); 6 } else { 7 window.parent.postMessage('fail', '*'); 8 } 9 } 10 window.addEventListener('message', handleEvent); 11 </script>