Forum Moderators: open
[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
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