M
M
MaxFreedom2016-12-02 21:11:44
Google
MaxFreedom, 2016-12-02 21:11:44

Can search engines index JavaScript links in a div?

Hello!
Guys, who knows if search engines index links like onclick on JS, here is an example:

<div id="viewBuy" onclick="location.href=\'shopping.php?asessories_id=%s\'">Заказать</div>

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
profesor08, 2016-12-03
@RomanticOS

Remove this mess and do it right:

<a id="viewBuy" href="shopping.php?asessories_id=%s">Заказать</a>

X
xmoonlight, 2016-12-02
@xmoonlight

If the JS in the HTML page code is correct, then definitely: YES.

D
Dimonchik, 2016-12-02
@dimonchik2013

inlex, but there are funny options
logs look, Googlebot is not hiding there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question