<html>
<head>
<title>Prerendered page with link</title>
<script>
var pageWasPrerendered = false;
function DidPrerenderPass() {
pageWasPrerendered = true;
return true;
}
function DidDisplayPass() {
return pageWasPrerendered;
}
function ClickOpenLink() {
var eventObject = document.createEvent('MouseEvents');
eventObject.initMouseEvent('click');
document.getElementById('toClick').dispatchEvent(eventObject);
}
function IsOriginalPrerenderPage() {
return true;
}
</script>
</head>
<body>
<a id="toClick" href="prerender_page.html">Link to click</a>
</body>
</html>