Welcome to WebmasterWorld Guest from 184.108.40.206
Still, if you want the internal urls of a site to be frequently spidered, and most of all to pass on backlink influence of all kinds, then currently those links do need to be "vanilla html" -- <a href="[the target url]">
document.getElementById('commentformcontainer').innerHTML="Blah, blah blah, the content I want to display is here";
Is this ok for Google?
you mean that some JS links can be viewed and followed by Google?
There is a phenomenon that I've heard called "URL Hunger". During the index size wars between the major search engines it sometimes went to the extreme. For example:
Googlebot will try to spider any character string it picks up that looks like a url -- that has certain characteristics such as beginning with the http: protocol, and so on. This doesn't mean Google will treat that url as a link on the page -- it's only a "real" link if it's in an anchor tag, etc, etc.
Let's assume that googlebot sees an on-page script, and somewhere within the script there is the line: "location.ref="http://www.example.com/funkypage.asp". Googlebot will often put that "we-hope-it's-a-URL" into its crawl queue, if it didn't already have it from sone other source.
Unless that URL also shows up as an html anchor tag, its occurence in the script will not influence ranking calculations in the same way that a "regular" link does. But the "we-hope-it's-a-URL" may get crawled, and if the server resolves it, then that URL may get into the Google index in some way. It may not stick if it's not supported by other links, somewhere or other on the web, but it often will get an audition.
So I basically have this in the page:
Is this ok?
<div id="submenuID><a href="smID.html">Partial sitemap</a></div>
Has anyone else using this method suddenly developed SERP problems on Sept 15? If so, please post.
Anyone got any clue?