moving-autofocus-to-parent.html (228B)
1 <!DOCTYPE html> 2 <body> 3 <script> 4 const input = document.createElement('input'); 5 input.autofocus = true; 6 document.body.appendChild(input); 7 input.autofocus = false; 8 window.opener.document.body.appendChild(input); 9 </script> 10 </body>