Forum Moderators: Robert Charlton & goodroi

Message Too Old, No Replies

Google does index Javascript

         

dailypress

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

WebmasterWorld Senior Member 10+ Year Member



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?

londrum

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

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



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>

hvacdirect

11:39 pm on Aug 21, 2007 (gmt 0)

10+ Year Member



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.