2
Through Stackoverflow I got a code that I was looking for, that serves to hide the target link, not to appear when pointing the mouse over the image or video that has the link, but now I need to, when clicking, open a new tab, and do not leave my blog.
The Code is as follows::
<div onclick="javascript:window.location.href = 'http://www.sonoticias8515.com.br/canal/canal/votacao-melhor-gol-da-uefa-champions-league---golaco-do-barcelona-jogo:-barcelona-/2507811a1k5s9h3551638010852a21510855 ';" style="cursor:pointer;text-decoration:underline;">Teste</div>
Very good Sergio, solved my problem expensive, as for CSS I did not need, with the code above and implementing with your code window.open I managed to hide the link and when they click it is now opening in new tab. Congratulations and thank you very much!
– Marcos Santos
@I know the code would work what I meant is that you can do the same with CSS and using anchors (
<a>
). It would be better from the point of view of functionality, semantics and SEO. But use how you feel more confident.– Sergio