1 2 3 4 5 6
<!DOCTYPE html> <script> let bc = new BroadcastChannel(window.location.search.substring(1)); bc.postMessage({ hasOpener: opener !== null }); window.close(); </script>