blob: 731387b37d2674003a1fda5c1a3c2b6a52c8496a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<!DOCTYPE html>
<html>
<head>
<title>Dynamic iframe</title>
</head>
<body>
<script>
const ifr = document.createElement("iframe");
ifr.setAttribute("src", "invalid");
document.body.appendChild(ifr);
ifr.contentWindow.document.open("text/html", "replace");
ifr.contentWindow.document.write("foo");
ifr.contentWindow.document.close();
</script>
</body>
</html>
|