• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<script>
3function runTest() {
4    var o = { };
5    showModalDialog("data:text/html,<scr" + "ipt>dialogArguments['result'] = 'PASS'; window.close() </scr" + "ipt>", o);
6
7    if (o.result == 'PASS')
8        document.getElementById('result').innerHTML = 'SUCCESS';
9}
10
11</script>
12<body>
13<div>
14This 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.
15</div>
16<button onclick="runTest()">Click Me!</button>
17<div id="result">
18</div>
19</html>
20