Unsafe use of target=”_blank” attribute to open a new webpage can create a major security threat to your application. The issue is the webpage that we are linking our existing page to gains a partial access to the linking page, or in other words, the target page or URL gains access to our parent page from where the user is redirected to a new URL. This happens through the windowopener object of Javascript. The attacker can change the.opener to some malicious page and also the parent page. In case the. parent page has the same look and feel of the user intended page, he might end up sharing. credentials or secure information.