A
A
Alex-Broudy2019-02-21 18:28:39
JavaScript
Alex-Broudy, 2019-02-21 18:28:39

Does the presence of onclick in links affect SEO?

Good afternoon!
Experts, please advise.
The site has links like this:

<a href="https://example.com" onclick="window.open('https://example222.com');return false;" target="_blank">
example.com
</a>

Is it good or bad to have such links on the site and why?
Note: the site uses affiliate links (in the example it is indicated as: https://example222.com), but there is a block indicating the partner's official website and so that the user in this block, when hovering over the link at the bottom of the browser, sees the link address, and when clicked goes to the partner’s official website only through an affiliate link, I don’t know why they did it, but I would like to figure out whether it’s worth bothering like that and whether it affects anything ..
Thank you in advance for your help in this matter)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel Kornilov, 2019-02-21
@KorniloFF

Does the presence of onclick in links affect SEO

No, it doesn't. May be affected by its content.
This is just the case. Such a design makes the user's behavior not obvious, and this cannot have a positive effect. It is desirable to space the link and the onclick button into different DOM nodes.

P
Puma Thailand, 2019-02-22
@opium

Everything should be normal

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question