Answer the question
In order to leave comments, you need to log in
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
Remove this mess and do it right:
<a id="viewBuy" href="shopping.php?asessories_id=%s">Заказать</a>
If the JS in the HTML page code is correct, then definitely: YES.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question