4
I’m trying to open a link in div
in a new tab, but
target="_blank"
is not working.
Eu queria abrir o link numa nova aba.
<li>
<div class="clientes" target="_blank" onclick="window.location='LINK';">
TEXTO
</div>
</li>
Someone could help me?
The attribute
target
is for anchors... why don’t you use<div><a target="_blank" href="o-teu-link.com">texto</a></div>
which is the correct semantics?– Sergio
I’m just a kid trying to do a few things:
– Daniel Barreleiro
Sergio, when changing the color of the <a mute all <a of the page, why I did not use.
– Daniel Barreleiro
Change the color to make it clear to the reader that it is a link... but you can change the color to what you want. But do what you wanted to open in another tab?
– Sergio