summaryrefslogtreecommitdiff
path: root/Tools/TestWebKitAPI/Tests/WebKit2/file-with-anchor.html
blob: 8ea866ba983a43b2dea3a6b74f45114ad7102c22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<html>
<head>
  <script>
    function clickLink()
    {
      var evt = document.createEvent("MouseEvent");
      evt.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
      var link = document.querySelector('a');
      link.dispatchEvent(evt);
    }
  </script>
</head>
<body>
  <a href="#anchor">Link to anchor</a><br>
  In between.<br>
  <span id="anchor">Anchor</span><br>
  After the anchor.<br>
  </body>
</html>