3 function createClickEvent() {
4 var event
= document
.createEvent("MouseEvent");
5 event
.initMouseEvent("click", true, true, null, 1, 0, 0, 0, 0,
6 false, false, false, false, 0, null);
10 var a
= document
.getElementById("link");
11 a
.dispatchEvent(createClickEvent());
15 <li>Open console.
</li>
16 <li>Click this:
<a id=
"link" href=
"#one">#one
</a></li>
17 <li>Push the back button.
</li>
18 <li>How many log records do you see?
</li>