I’m trying to get the reference by javascript of a window that it’s open after clicking an ANCHOR that has a target _blank.
Like this:
<a href="..." target="_blank">
new window
</a>
So I can check if later if the window was closed.
Hope you guys can help.
HTML
JavaScript
See it!
If you simply wanted all links with
target="_blank", this should succeed in selecting them.On a fresh browser…