I have the following anchor code on my site:
<a href="/mypage.html" onclick="return getMyPageWithAjax();" >My Page</a>
For human users, the
onclick will get the data with AJAX without page refresh.
Currently what is the behaviour of Googlebot when it sees that link? Will it ignore
onclick and directly go to page given in
href or handle
onclick or do both when it indexes my website?
The same question for Yahoo and Bing but most important is Google.
Is there a way I can tell the bot, ignore onclick and go to href or vice versa?
What would be the behaviour of the bot if the anchor had no
href attribute or
href="#" and just
onclick attribute with above value?