First the demo: show elgookirt
For this I made up two words that Google had no idea about … trikoogle and elgookirt... notice the source of the demo above does not have the word trikoogle mentioned …
The test was to get Google to index the word elgookirt, but have users see only the Trikoogle page … lets see if google indexes the demo page as elgookirt
google » elgookirt
google » trikoogle
here is the pseduo code:
.
1: load html
2: onload ... fetch new html with AJAX
3: replace content
that’s it? ... so what’s the big f^%@#$ deal?
The big deal is that people could show one set of content for Google, and be totally deceitful and display different content for users. Googlebot doesn’t know about JavaScript per se … so that why this is more effective than let’s say a CSS implementation of hide and show divs.
To put it into context… google indexed elgookirt which could have been NICE_CONTENT, but with AJAX I only show trikoogle which for all sense and purpose could be VERY_BAD_CONTENT ... maybe googlebot is smart enough … we’ll see…
I think this is very unfortunate, and maybe search engines need to be JavaScript aware .. atleast when there is an ONLOAD event …
Source files (uncompressed): trikoogle.zip