File: scrollable.html

package info (click to toggle)
python-playwright 1.55.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,728 kB
  • sloc: python: 53,655; javascript: 383; sh: 216; makefile: 6
file content (23 lines) | stat: -rw-r--r-- 709 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html>
  <head>
    <title>Scrollable test</title>
  </head>
  <body>
    <script src='mouse-helper.js'></script>
    <script>
        for (let i = 0; i < 100; i++) {
            let button = document.createElement('button');
            button.textContent = i + ': not clicked';
            button.id = 'button-' + i;
            button.onclick = () => button.textContent = 'clicked';
            button.oncontextmenu = event => {
              event.preventDefault();
              button.textContent = 'context menu';
            }
            document.body.appendChild(button);
            document.body.appendChild(document.createElement('br'));
        }
    </script>
  </body>
</html>