V
V
Vitaly2019-03-26 14:23:48
HTML
Vitaly, 2019-03-26 14:23:48

How to make an analogue of nofollow for a button?

Hello! In html , the rel=nofollow attribute is used
to prohibit the indexing of a link in a tag . If a button ( ) is placed on the page and a click on it is processed by JS, redirecting to the page with the command<a>
<button>

$( ".button" ).on( "click", function() {
window.open("http://externalSite.ru/", '_blank')
})

What if I want to block this link from being indexed by search engines.
And in general, do search engines consider a button with such a handler to be a link?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Valentin, 2019-03-26
@xSnaip

What if I want to block this link from being indexed by search engines.
It won't be indexed anyway.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question