The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. On-Page / Site Optimization
    4. Do javascript pseudo-links dilute link juice ?

    Do javascript pseudo-links dilute link juice ?

    On-Page / Site Optimization
    4 2 1.1k
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Strelok
      Strelok last edited by

      Hi,

      On our ecommerce, we use multiple pseudo-links for the layered navigation (to filter by color, site, etc), so that google doesn't crawl every combination of filters.

      I know this kind of links don't pass link juice and don't get crawled (provided you hide the target urls in your javascript). But, as there is an "onclick" property, I'm afraid that google could understand that these are links, and treat them the same way as nofollowed links (not following them but diluting link juice anyway).

      Do you know if this is the case ?

      Thanks,

      1 Reply Last reply Reply Quote 0
      • David-Kley
        David-Kley last edited by

        Since the onclick event is a Javascript issue it's to all intents and purposes ignored by the search engines. What counts is whether or not your link appears in the href attribute, and whether or not the link is nofollowed. You stated that it is already set to no-follow, so you should be ok.

        1 Reply Last reply Reply Quote 0
        • Strelok
          Strelok last edited by

          Hi,

          It is not set to nofollow, since it is a section (not a <a>). My question was if Google would handle a link the same way as a</a> <a href="" rel="nofollow">, i.e. not pass link juice to the target url, but still dilute link juice from the source url ?</a>

          <a href="" rel="nofollow">Thanks</a>

          1 Reply Last reply Reply Quote 0
          • David-Kley
            David-Kley last edited by

            No, you should not have any issues with dilluting the source URL, and not pass link juice to the other pages.

            Here is a short list of ways I've used the span link.

            1. For links that only run JavaScript when they are clicked. They don't load a new page into the browser.

              The same thing can be done with href="javascript:..." within an A tag. With the span link, however, any JavaScript that affects the A tags on a page will not affect the span link.

            2. For links that only run JavaScript when a mouse hovers over it. They're not supposed to load a new page when the link is clicked.

              The span link in this case is so much more elegant. An A tag must have an href attribute and, if the link is used only for an onmouseover, the href must be constructed to do nothing when the link is clicked.

            3. Hide from spiders that another web page is being linked to.

              Perhaps you wish to link to another website for the convenience of your visitors. Yet, the other website is not in the same category as yours and you don't want certain search engines to think your site is similar to that other.

              Or, you simply don't want to provide link juice to the other site.

            Source: http://www.willmaster.com/library/web-development/linking-without-an-a-tag.php

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • Can Javascript Links Be Used to Reduce Links per Page?
              Jay-T
              Jay-T
              0
              5
              650

            • Internal and Link Juice Analysis - Too Many Links Error
              AndrewAtMGXCopy
              AndrewAtMGXCopy
              0
              2
              208

            • Link juice/PR to social media platforms
              TheeDigital
              TheeDigital
              0
              2
              327

            • Too many On-Page Links warning + Javascript Menu
              KeriMorgret
              KeriMorgret
              0
              6
              450

            • Link Juice not passing for root domain to an internal page
              RyanKent
              RyanKent
              0
              3
              588

            • Link juice question
              elgoog
              elgoog
              0
              3
              573

            • Is anchor text link juice passed in internal links?
              knichol
              knichol
              0
              3
              782

            • Prevent link juice to flow on low-value pages
              jonigunneweg
              jonigunneweg
              0
              6
              1.2k

            Get started with Moz Pro!

            Unlock the power of advanced SEO tools and data-driven insights.

            Start my free trial
            Products
            • Moz Pro
            • Moz Local
            • Moz API
            • Moz Data
            • STAT
            • Product Updates
            Moz Solutions
            • SMB Solutions
            • Agency Solutions
            • Enterprise Solutions
            • Digital Marketers
            Free SEO Tools
            • Domain Authority Checker
            • Link Explorer
            • Keyword Explorer
            • Competitive Research
            • Brand Authority Checker
            • Local Citation Checker
            • MozBar Extension
            • MozCast
            Resources
            • Blog
            • SEO Learning Center
            • Help Hub
            • Beginner's Guide to SEO
            • How-to Guides
            • Moz Academy
            • API Docs
            About Moz
            • About
            • Team
            • Careers
            • Contact
            Why Moz
            • Case Studies
            • Testimonials
            Get Involved
            • Become an Affiliate
            • MozCon
            • Webinars
            • Practical Marketer Series
            • MozPod
            Connect with us

            Contact the Help team

            Join our newsletter
            Moz logo
            © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
            • Accessibility
            • Terms of Use
            • Privacy