I tried to use the following code with a onLoad="checkLinks()" in the body tag, but it seems the window.document.links[i].onClick = newWinAlert; executes even if the click on the link is not done (it executes on page load...) anything else I could do...or did I do anything wrong...
I was wondering if there was a way to detect if the current browser
openned a new window. For example, I have a link like <a
href="http://www...." target="_blank">text</a>
And I would like to know if a window was openned using this like (the
_blank target opens a new...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.