<!DOCTYPE html>
<body>
<script>
const input = document.createElement('input');
input.autofocus = true;
document.body.appendChild(input);
input.autofocus = false;
window.opener.document.body.appendChild(input);
</script>
</body>
