6 var item
= document
.createElement("li");
7 item
.appendChild(document
.createTextNode(message
));
8 document
.getElementById("console").appendChild(item
);
11 function return_malware_prefetch() {
12 var pathArray
= window
.location
.pathname
.split('/');
14 for ( i
=0; i
< pathArray
.length
- 1; i
++ ) {
15 newPathname
+= pathArray
[i
];
18 newPathname
+= "malware.html";
19 var href
= window
.location
.protocol
+ "//" + window
.location
.host
+ newPathname
;
20 var link
= document
.createElement("link");
21 link
.rel
= "prefetch";
26 function add_prefetch(element
) {
27 var head
= document
.getElementsByTagName("head")[0];
28 head
.appendChild(element
);
32 <body onload=
"add_prefetch(return_malware_prefetch());">
33 This page is not malware,
<a href=
"malware.html">but this page is
</a>. If
34 prefetches don't trigger safe browsing interstitials, then this page
35 should work in a dandy manner.
36 <p><ol id=
"console"></ol></p>