summaryrefslogtreecommitdiffstats
path: root/chrome/test/data/devtools/navigate_back.html
blob: a5105f99133edb887ce4a02b8a123682d0800869 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<script>
console.log("Loaded");
function createClickEvent() {
  var event = document.createEvent("MouseEvent");
  event.initMouseEvent("click", true, true, null, 1, 0, 0, 0, 0,
                       false, false, false, false, 0, null);
  return event;
}
function clickLink() {
  var a = document.getElementById("link");
  a.dispatchEvent(createClickEvent());
}
</script>
<ol>
  <li>Open console.</li>
  <li>Click this: <a id="link" href="#one">#one</a></li>
  <li>Push the back button.</li>
  <li>How many log records do you see?</li>
</ol>