7 let src
= document
.location
.href
.replace("hsts_headers_framed.html", "hsts_headers.sjs");
8 if (document
.location
.search
== "?third-party") {
9 src
= src
.replace("example.com", "example.org");
11 let frame
= document
.createElement("iframe");
12 frame
.setAttribute("src", src
);
13 frame
.onload
= () => {
14 let done
= document
.createElement("h1");
15 done
.textContent
= "done";
16 done
.setAttribute("id", "done");
17 document
.body
.appendChild(done
);
19 document
.body
.appendChild(frame
);