Javascript and passing link juice

6 replies
Hi all,

I have an ecommerce site which has javascript links. The coder put the javascript in to reference the brands, which are our main keywords we go after.

Will google see the text links as anchor text and treat them as a usual html link? I really am not sure as never used javascript in this way or is it simply far better to have html links with anchor text?
#javascript #juice #link #passing
  • Profile picture of the author stma
    Never tested it because I don't do javascript if I can help it. BUT google says it reads some limited javascript these days.
    {{ DiscussionBoard.errors[2167823].message }}
  • Profile picture of the author Harrison Ortega
    A good read: https://www.google.com/support/webma...n&answer=34444

    Goggle states "If you use JavaScript, DHTML, images, or rich media such as Silverlight to create navigation and links, Googlebot and other spiders may have trouble crawling your site."

    You'll have to implement it using the new Google's AJAX crawling scheme. But not worth the trouble. Would be easier to use the regular links instead.

    Originally Posted by ilikecake View Post

    Hi all,

    I have an ecommerce site which has javascript links. The coder put the javascript in to reference the brands, which are our main keywords we go after.

    Will google see the text links as anchor text and treat them as a usual html link? I really am not sure as never used javascript in this way or is it simply far better to have html links with anchor text?
    Signature
    NJ web design / NJ Web Designer. MY Wordpress portfolio. 10 years of HTML/CSS - 6 years developing professional Wordpress websites. Currently not available for services.
    {{ DiscussionBoard.errors[2169402].message }}
  • Profile picture of the author webchamp930
    Originally Posted by ilikecake View Post

    Hi all,

    I have an ecommerce site which has javascript links. The coder put the javascript in to reference the brands, which are our main keywords we go after.

    Will google see the text links as anchor text and treat them as a usual html link? I really am not sure as never used javascript in this way or is it simply far better to have html links with anchor text?
    Pure JavaScript links will get you no where because spiders view the site as you would view it with JS turned off. You need to have your programmer add links that appear when the users JS is off the spiders will see these links, and a small bonus users entering with JS turned off could also surf the site.
    {{ DiscussionBoard.errors[2174001].message }}
  • Profile picture of the author JonathanKrantz
    Definately use regular anchor links. Not just for google but other search engines too.
    {{ DiscussionBoard.errors[2184639].message }}
  • Profile picture of the author Aaron Sustar
    You really shouldn't be using javascript for displaying links if you want them to pass any juice ... Web crawlers would need to have javascript interpreters (which they don't) to actually know that a link has been inserted onto a website via javascript, and even then they wouldn't put much weight on those links, since they would be considered to be "dynamic" content.
    {{ DiscussionBoard.errors[2194577].message }}
  • Profile picture of the author LP_User
    Most crawlers will skip straight over '<script>' tags, unless they are embedded in your content as part of the document flow and even then its very unlikely that it'll pick up any links.
    {{ DiscussionBoard.errors[2202706].message }}

Trending Topics