There are links with different domains (strangers). Some sites through window.opener.location.href replace our site.

How can I disable window.opener control? Links with target="_blank" , but there is also window.open()

I tried the method (did not work):

 var w = window.open(url); w.opener = null; 

    0