Answer the question
In order to leave comments, you need to log in
How to close a link from indexing? Who thinks about this option?
Hello! I want to close the link from indexing using js. The script changes the "supposedly" link code on the html page to a normal link after the document is fully loaded.
Everything works, the tag is replaced by
How do search engines treat you?<span></span>
<a></a>
<span class="hidden-link" data-link="cart.html"><span id="total-cart-count" class="badge"></span></span>
$('.hidden-link').replaceWith(function(){
return'<a href="'+$(this).data('link')+'">'+$(this).html()+'</a>';
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question