JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://code.jquery.com/jquery-git.js"></script>
<input type="text" />
CSS
input{ margin-top: 3000px; }
JavaScript
$('input').focus();
$(document.body).scrollTop(0);
prompt("closing me leaves the focus on the previously-focused element, so naturally, scrolling with the keyboard will still not work", "ready?");