Google Does Not Crawl Links Hidden in Onclick Events

Google does not crawl links hidden in Javascript Onclick Events.

A few months back I wrote about detecting duplicate content using Google. When I wrote the post I inadvertantly set up an experiment with code that looks like this:

Which, creates a working link that looks like this:

>>>  Seogadget home page <<<

In the past there’s been some discussion over whether Google is executing Javascript. I can’t answer that question; I’ve seen search engines like Searchme’s crawler Charlotte executing Java all over the place – with hilarious consequences on the analytics data but I genuinely can’t comment on what Googlebot will (and will not) execute Java wise.

What I do know is, that after two months, the url in the Javascript onclick event above has still not been indexed by Google. Nor has Yahoo, nor has Live.

Have We Been Helpful?

Builtvisible are a team of specialists who love search, SEO and creating content marketing that communicates ideas and builds brands.

To learn more about how we can help you, take a look at the services we offer.

Stay Updated: Sign Up for New Blog Alerts

Follow: | | |

Tags: , | Categories: Technical

7 thoughts on “Google Does Not Crawl Links Hidden in Onclick Events

  1. Thanks for your insight @richardbaxterseo, what is the date of this post? I am still researching the changes that Google is doing as far as JavaScript linking goes.

  2. This was published about 8 months ago. To that end I strongly recommend you test the onclick. There’s a canonical tag on this site now which invalidates the test somewhat! I may remove the tag and see what happens at some point soon. Thanks for dropping by!

  3. Thanks for your quick response. Found this after I posted my comment yesterday, (around minute 19:00) – It seems GoogleBot does officially follow JavaScript links. Good for some, not so good for others.

  4. nepoez says:

    I submitted this site recently and google seems to crawl is every 10 minutes, but it keeps crawling the same links over and over again even though there were other links to crawl

    very weird.

  5. nepoez says:

    Now I have a real domain name and Google crawls it about ever 10 seconds. And many crawls are repeats.

  6. Mike says:

    nepoez are you the administrator of

  7. WhiteSites says:

    Thanks for your research on this.
    I used to use href to run the hits on a voting site. I later realized this was not the best idea as most of the hits were crawlers hitting the hrefs. So I thought that maybe using the onclick might be a better way to go, but after reading your post looks like I will have to try another way.

Leave a Reply

Your email address will not be published. Required fields are marked *