Chrome/Safari: how to open the same window from different tabs or windows
问题 In a web application, I have an optional popup window into which logging content is being loaded. This window is opened via Javascript using window.open() . The users typically have multiple tabs of the application open and my intention is to always reuse the same popup window (if currently open), no matter from which tab they trigger the popup. To do so, I use code similar to this to open the popup: <script> function myFunction() { var myWindow = window.open("popup.html", "my_popup", "width