Welcome to WebmasterWorld Guest from

Forum Moderators: Robert Charlton & aakk9999 & andy langton & goodroi

Message Too Old, No Replies

Google does index Javascript

7:31 pm on Aug 21, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:Nov 3, 2006
votes: 1

For some specific reason I wanted to block google from indexing the text links on my page and was told to convert the html to Javascript.
However, when I googled the text my site did show up and when you check the cached version there was a highlight on the text!

Any explanation for that?

8:47 pm on Aug 21, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 12, 2006
votes: 45

they've been looking at javascript for ages. they even seem to follow the links contained in it.
if you really want to hide it then i would do something like this... put the javscript inside a function in an external file, and then just call the function from your page. or call the function when the page loads or something like that - then you won't even need to include the
<script> </script>
11:39 pm on Aug 21, 2007 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 25, 2006
votes: 0

They look at the code and try to find links, they just don't run the code like a browser would.

I'd imagine its not passing any link juice and thus wouldn't get you in trouble if it was a bad neighborhood, sold, advertisement etc.