I am developing a new website, and I would like to use clickable divs instead of normal links:
Here is the code I use:
<div class="css-class" onclick="location.href='http://example.com/page'" title="Some text">
Some clickable content
</div>
Will Google and other search engines see the clickable divs as well as they see the normal links?
In other words, will they be cabable of crawling the http://example.com/page
page?
3
Answers
According to this page:
It then goes on to mention that other search engines aren’t yet doing it. (it was written in Oct 2014)
Will Google and other search engines see the clickable divs as well as they see the normal links? Yes Google can easily crawl your answer if they are on or without .
Google can index the OnClick tag, but if you added a function (external file) to redirect you, here Google can’t index it.
Example:
Indexed by Google:
Not indexed by Google: