5 showModalDialog("data:text/html,<scr" + "ipt>dialogArguments['result'] = 'PASS'; window.close() </scr" + "ipt>", o);
7 if (o.result == 'PASS')
8 document.getElementById('result').innerHTML = 'SUCCESS';
14 This tests that modal dialog arguments get passed around correctly. Click the button below to test. The text "SUCCESS" will be shown below if the test was successful.
16 <button onclick="runTest()">Click Me!</button>