Google Spidering Java

  • softstor
  • Novice
  • Novice
  • No Avatar
  • Joined: May 31, 2004
  • Posts: 29
  • Status: Offline

Post January 31st, 2005, 7:47 pm

I came across a nice piece of javascript code that will create random hyperlinks from a large list. This is done by using the document.write function in a .js file.

The code that is placed in the html file is in the format of:

<script type="text/javascript" src="xlinks.js"></script>

Even though these hyperlinks are displayed to the user in the webbrowser, will google and other search engines able to spider these links?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post January 31st, 2005, 7:47 pm

  • rtchar
  • Expert
  • Expert
  • User avatar
  • Joined: Mar 22, 2004
  • Posts: 606
  • Loc: Canada
  • Status: Offline

Post January 31st, 2005, 9:39 pm

The short answer is NO ... Google does not execute javascript. A spider simply downloads the HTML file and then tries to make sense of the TEXT that has been received.

Spiders are NOT browsers, they do not see graphics, or scripts. In fact they see exactly the same thing you see when you edit the file with a text editor.

Contrary to some opinions ... Javascript would be discarded.

The reason is that most Javascript would be unexecutable if transferred to another machine. There would be missing data files, wrong paths, and bad document references.

I have several javascript references on my pages ... not one shows up in the cached text of my site.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post January 31st, 2005, 9:53 pm

In addition, I don't think that form Option links are spidered either via dropdown menus, nor are DHTML menu links that are driven by javascript (know that for sure from experience)
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • rtchar
  • Expert
  • Expert
  • User avatar
  • Joined: Mar 22, 2004
  • Posts: 606
  • Loc: Canada
  • Status: Offline

Post January 31st, 2005, 10:32 pm

Quote:
I don't think that form Option links are spidered either via dropdown menus


I think you are right, the links are not followed ... but the options ARE indexed. Good place to stuff keywords, like one of my competitors who IS ranking well.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 18 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.