Forum Moderators: Robert Charlton & goodroi

Message Too Old, No Replies

Google vs JavaScript

Will googlebot crawl a js file for URLs?

         

jcmoon

5:00 pm on Oct 7, 2005 (gmt 0)

10+ Year Member



A new site of ours doesn't have the ability to do SSI includes, so I came up with a different plan. I made a handful of .js files, all filled with many lines of
document.write(" line of html code for that part of the page ");

But when I tried a simple site-spidering program, all it found was the images embedded in the homepage's html, nothing from any of the .js files.

So I'm wondering: would googlebot have a similar limitation with a brand-new site? One with high PR is one thing, but a rather new one (or one with no PR) is something else.

tedster

5:19 pm on Oct 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No, neither googlebot nor any other major spider will parse javascript - no matter how well established or new the site. To pass PR, anchor text influence and so on, there must be standard <a href="[url]"> tags.