blob: fd2969f27003c5e0a415d138da4112730119be20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<script>
function run() {
let ifr = document.createElement("iframe");
document.body.appendChild(ifr);
let doc = ifr.contentWindow.document;
doc.open();
doc.write(`<script>document.cookie = "foo=bar"<\/script>`);
doc.close();
}
</script>
</head>
<body onLoad="run();">
</body>
</html>
|