We all use the anchor tag in HTML for providing a hyperlink in our hypertext document.
The case becomes worse if your website is vulnerable to XSS.
The attacker may place a fake page asking for login, and ultimately collect your credentials.
Can I prevent this from happening?
Of course you’re free to.
Downloadthisfrom github and include this file as a script source in your next document.
If you want to read further, I would advise you to follow the text onthis page.
source: www.techworm.net