943,487 Members | Top Members by Rank

Ad:
Jun 14th, 2004
0

Does google understand javascript?

Expand Post »
I know that spiders are incapable of filling out forms and the like. But if I have links that have been dynamically generated client-side by some simple javascript, are they capable of following these links?
Similar Threads
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is online now Online
13,645 posts
since Feb 2002
Jun 14th, 2004
0

Re: Does google understand javascript?

Yes it does. From what I hear it prefers if the javascript has the actual URL that it wil be landing on
window.location("http://www.mcpmedia.com");
and it doesn't read it if it is inside a select box. It really much prefers a good text link to anything else tho.

http://www.highrankings.com/forum/in...avascript+link
Reputation Points: 16
Solved Threads: 2
Junior Poster
Arizona Web is offline Offline
118 posts
since Jun 2004
Jun 14th, 2004
0

Re: Does google understand javascript?

Unfortunately that is not good news for me. The code I had in mind was the "featured threads" listing in the sidebar of my forum index. It uses http://www.daniweb.com/techtalkforum...al.php?type=js

<script src="external.php?type=js" type="text/javascript"></script>
<script type="text/javascript">
<!--
for (i=0;i<10;i++)
{
  document.writeln("<div class=\"smallfont\" style=\"padding:8px\">" + threads[i].threaddate + " " + threads[i].threadtime + "<br /><strong><a href=\"thread" + threads[i].threadid + ".html\">" + threads[i].title + "</a></strong><br />" + threads[i].poster + "</div>");
}
//-->
</script>

According to the link you sent me, google is experimenting with a spider that can follow simple JavaScript that clearly contains the URL only. Oh well.
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is online now Online
13,645 posts
since Feb 2002
Jun 14th, 2004
0

Re: Does google understand javascript?

On a positive note, I think I cought wind that it is also experimenting with a bot that can read javascript write stuff too. But I wouldn't bet the farm on it.

That looks like something you could do with PHP tho.
Reputation Points: 16
Solved Threads: 2
Junior Poster
Arizona Web is offline Offline
118 posts
since Jun 2004
Jun 19th, 2004
0

Re: Does google understand javascript?

That would be nice. In the meantime, I have added <noscript> tags.
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is online now Online
13,645 posts
since Feb 2002

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Search Engine Optimization Forum Timeline: Google Trends
Next Thread in Search Engine Optimization Forum Timeline: Is Redirect Bad for Business?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC