When we open a new tab link window.opener get triggered which made a limited access to the specific tab opened. As we all use target="_blank" to open the link into new tab of a window but everyone should know a risk inside it. Do not forget to add relation attribute in your link tag rel=noopener noreferrer.

1m read timeFrom dev.to
Post cover image
5 Comments

Sort: