summaryrefslogtreecommitdiffstats
path: root/dom/events/test/clipboard/simple_navigator_clipboard_keydown.html
blob: 15fcdfba2cbf7d874907053d4a9884ef3581e1ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html>
<html>
  <head>
  <meta charset="utf-8">
  <script>
    function onLoad() {
      document.addEventListener("keydown", function() {
        navigator.clipboard.readText();
      });
    }
  </script>
  </head>
  <body onload="onLoad()">
  </body>
</html>