Forum Moderators: open

Message Too Old, No Replies

Does Google index text from script links?

text script indexing

         

nativenewyorker

8:00 pm on Dec 17, 2002 (gmt 0)

10+ Year Member



Does Google index text that is not hard-coded into a page, but referenced to thru a script?

[u]example:[/u]

My website has a page with the follwing code:
<script src="http://generic-affiliate-network.com&id=a1b2c3d4e5f6g7h8"></script>

The script link when displayed on my website shows:
Large Blue Widget

Will Google index Large Blue Widget or ignore it? Since previous threads have mentioned Google not parsing JavaScript, let's assume that the script is not JS and is standard text.

Thanks in advance,
Ted

andreasfriedrich

8:13 pm on Dec 17, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you want to assume that a JavaScript is not that but ordinary text then it would be indexed by Google indeed. The hard part would be to convince GoogleBot to make just that assumption.

I like to think of JavaScript as being JavaScript. This is a fairly save assumption. If you go with that, then Googlebot will ignore your script since it does not parse and execute JavaScript.

If you try to reference a file that does not contain valid JavaScript code via the script element with a type='text/javascript' attribute then you will get an JavaScript error in UAs that have a JavaScript engine. UAs like GoogleBot that have not will ignore your script element.

Andreas

jomaxx

9:35 pm on Dec 17, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ditto. Google won't fetch this file because it can only contain Javascript, not plain text.