JSFiddle - React, Tailwind, and code Playground

by Valentin Sarychev

HTML

<div id="output"></div>

JavaScript

const output = document.querySelector('#output');

[...Array(20)].forEach((_, i) => {
	const iframe = document.createElement('iframe');
  iframe.name = i;
  iframe.width = 1;
  iframe.height = 1;
  iframe.src = 'http://localhost:8080/';
	output.appendChild(iframe);
});

// если на экран выведено больше одной собачки, то чтение куки происходило параллельно

/* http://localhost:8080/
<html>
    <body>
        <scr ipt>
            if (window.name == 0) {
                document.cookie = 'test=0';
            } else if (document.cookie.indexOf('test=1') === -1) {
                document.cookie = 'test=1';
                console.log('@');
            }
        </scr ipt>
    </body>
</html>
*/