I can call the function remotely from sites hosted on other servers.
This would allow me to change the HTML snippet at any time without having to manually change it on a bunch of sites, I would just need to change it once in the JS file.
This is the JS file.
document.getElementById('thetag').innerHTML+='<a href="http://www.somesite.com" target="_blank" title="My Company Info" class="mstag">Powered By My Company</a>';\\
This is the code snippet to put into other pages.
this is another variation of it for XML parsed pages.
This seems to work fine, however, when I view the output of this script using a Google bot simulator, it does not show the HTML link, which is the whole point of this.
So, is it at all possible to have this script work, but do so in a way where the output can still be indexed by google (and hopefully the other big guys like Yahoo and Bing, but even if it was just google I would be happy).
If that is not possible, I'll have to go back to using server side languages but I wanted to go the JS route to have a single system that worked on all sites, no matter what language they were coded in.
Any info on this will be greatly appreciated. Thanks!
Do you have any links that support the idea that the googlebot executes JS?