closed.html (418B)
1 <!DOCTYPE html> 2 <!-- 3 There's two URL parameters supported here: 4 5 window: The property name of a getter on the global object that returns the relevant WindowProxy 6 object to message. 7 ident: A reasonably unique identifier that will be echoed as the message. 8 --> 9 <script> 10 const params = new URLSearchParams(location.search); 11 self[params.get("window")].postMessage(params.get("ident"), "*"); 12 </script>