<script>window.variable = 1;</script>
<input id="text">
Rerun