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.