blob: a5105f99133edb887ce4a02b8a123682d0800869 [file] [log] [blame]
<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>