-3
The code I’m working on.
var x = document.getElementsByTagName("details-contact")[1].innerHTML
function abreLink() {
var url = 'https://api.whatsapp.com/send?phone=55' + x + '&text=Ola%2C%20gostaria%20de%20saber%20mais%20sobre%20seus%20produtos%20e%20serviços.';
document.write(url);
}
<div class="details-contact">
<div class="contact-item item-phone">
<span class="icon icon-md">...</span>
<a href="tel:(11) 2222-3333">(11) 2222-3333</a>
</div>
</div>
Do not post images, please. If you want to display your code copy and paste it. Otherwise it makes it difficult (and too difficult) for other people to help you.
– tvdias
Was able to verify the responsta?
– tvdias