summaryrefslogtreecommitdiffstats
path: root/dom/tests/browser/focus_after_prompt.html
blob: db60d191896b1a0e79d59d9340790942507f1f69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Cursor should not be lost after prompt</title>
  <script type="application/javascript">
  function init() {
    document.getElementById("edit").contentWindow.document.designMode = "on";
  }
  </script>
</head>

<body onload="init()">
  <div id="clickMeDiv" onclick="prompt('This is a dummy prompt!');"
                       onmousedown="return false;">Click me!</div>
  <iframe id="edit"></iframe>
</body>
</html>