How to create a link that opens a new web page window or tab: To create a new window or tab when a link is clicked, the target=”_blank” attribute must be in the a href tag, as shown below.
<a href="https://www.computerhope.com/" target="_blank" rel="noreferrer">Computer Hope</a>
When you open a link in a new tab, that new tab will have access to the referring website through the window to which it is being sent. opening item, which makes the starting page susceptible to being tabbed away from.
Tabnabbing is a form of phishing that involves changing the content or position of the page from which it originated, which leaves it open to the possibility of user data being stolen.

For instance, opening a link to a malicious website in a new tab might cause the window.opener.location property of the page from which the link originated to be changed to point to a different destination (e.g., fake login page). If the user attempted to log back into the site by using the phoney login page, the attacker would be provided with the user’s login data.
If you want to stop people from tabnabbing, apply the attribute rel=”noopener no referrer” to any URLs that open in a new tab. For illustration purposes, the code that we used earlier is shown below, but with the addition of this property to the tag.
<a href="https://www.computerhope.com/" rel="noopener noreferrer" target="_blank" class="external">
Read Also: How to open a new tab in an Internet browser