<!doctype html>
<script>
  let w = null;
</script>
<button id="openWindow" onclick="w = window.open('about:blank', '', 'width=10,height=10')">Open</button>
<button id="focusWindow" onclick="w.focus()">Focus</button>
