I want to make the links in this javascript code nofollow. Please help me how to do that.
<a href="javascript:;" onclick="window.open('https://www.example.com', '_blank');"><img src="https://example.png/></a>
I want to make the links in this javascript code nofollow. Please help me how to do that.
<a href="javascript:;" onclick="window.open('https://www.example.com', '_blank');"><img src="https://example.png/></a>
According to https://developer.mozilla.org/en-US/docs/Web/API/Window/open you can add a third parameter in the window.open method that is a comma separated string with name value pairs - but rel is not supported...
Seems like html may be a good option.
<a href="www.example.com" rel="nofollow" target="_blank" >Link</a>
If you need to do this from js you could trigger a click on the link.