When clicking a link with target _blank, the new tab can access the window.opener object of the previous tab. This can be abused by redirecting the previous tab with window.opener.location to a malicious website.
In order this ignore this behaviour, add this attribute to your links:
rel="noopener noreferrer"
Categorieën
JavaScript