4 <title>Check that the referrer header is correct
</title>
7 <div id=
"console"></div>
9 var log
= document
.querySelector("#console");
11 if (document
.referrer
== "")
12 result
= "FAIL: no referrer";
13 else if (document
.referrer
.indexOf(".html") !== -1)
14 result
= "FAIL: referrer contains more than just the origin";
17 log
.innerText
= result
;
18 document
.title
= result
;