Google does not crawl links hidden in Onclick Events

by richardbaxterseo on September 17, 2008

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.

{ 5 comments… read them below or add one }

1 Digital Agency July 13, 2009 at 2:45 pm

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.

Reply

2 richardbaxterseo July 13, 2009 at 11:30 pm

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!

Reply

3 Digital Agency July 14, 2009 at 9:37 am

Thanks for your quick response. Found this after I posted my comment yesterday, http://code.google.com/events/io/sessions/SearchFriendlyDevelopment.html (around minute 19:00) – It seems GoogleBot does officially follow JavaScript links. Good for some, not so good for others.

Reply

4 nepoez September 29, 2009 at 5:57 pm

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 http://openbible.no-ip.org/openbible/bible-feed

very weird.

Reply

5 nepoez January 24, 2010 at 6:12 pm

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

Reply

Leave a Comment