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. Intermediate & Advanced SEO
    4. Is this link follow or nofollow? Does it pass linkjuice?

    Is this link follow or nofollow? Does it pass linkjuice?

    Intermediate & Advanced SEO
    7 3 461
    • 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.
    • TLM
      TLM last edited by

      I have been seeing conflicting opinions about how Google would treat links using 'onclick'.

      For the example provided below: Would Google follow this link and pass the appropriate linking metrics(it is internal and points to a deeper level in our visnav)?

      =-=-=-=-=-=-=

      <div id='<a class="attribute-value">navBoxContainer</a>' class="<a class="attribute-value">textClass</a>">
      

      <div id="<a class="attribute-value">boxTitle</a>" onclick="<a class="attribute-value">location.href='bla</a>h.example.com">

      <div class="<a class="attribute-value">boxTitleContent</a>" title="<a class="attribute-value">Text Here</a>"><a href<a class="attribute-value">Text Here</a>"><a ="blah.exam.cpleom">Text Herea>div>
      ```
      
       =-=-=-=-=-=-=
      
      An simple yes/no would be alright, but any detail/explination you could provide would be helpful and very much appreciated.
      
      Thank you all for your time and responses.
      1 Reply Last reply Reply Quote 0
      • TLM
        TLM last edited by

        Tabbing seems to have scrunched the code, maybe this is easier to read

        <div id='<a rel="nofollow" target="_blank">navBoxContainer</a>' class="<a rel="nofollow" target="_blank">textClass</a>">

        <div id="<a rel="nofollow" target="_blank">boxTitle</a>" onclick="<a rel="nofollow" target="_blank">location.href='bla</a>h.example.com">

        <div class="<a rel="nofollow" target="_blank">boxTitleContent</a>" title="<a rel="nofollow" target="_blank">Text Here</a>"><a href<a rel="nofollow" target="_blank">Text Here</a>"><a ="blah.exam.cpleom">Text Herea>div>

        Hope that helps.

        1 Reply Last reply Reply Quote 0
        • jesse-landry
          jesse-landry last edited by

          Well I'm assuming this code is modified and isn't live anywhere as it's kind of a mess and I don't mean formatting-wise. That said, clearly your question is mainly on the div onClick functionality and whether or not that passes link juice.

          To my knowledge, so long as the href is in place you will be fine. Google parses Javascript functionality pretty well and this is one of the simpler JS functions around.

          So my answer is: yes.

          TLM 1 Reply Last reply Reply Quote 1
          • TLM
            TLM @jesse-landry last edited by

            Yes, the code isn't posted here 'as-is'.

            I appreciate the quick response and the explination. I will wait for some other voices to chime in with their thoughts but I suspect they will mirror yours (although I am very interested in conflicting opinions if they are out there).

            jesse-landry 1 Reply Last reply Reply Quote 0
            • jesse-landry
              jesse-landry @TLM last edited by

              Fair enough! If there are conflicting opinions, I'll be surprised. Google has said since about 2008 or 09 that they are parsing Javascript functionality. Something about creating virtual link structures for spiders, blah blah but that's irrelevant really.

              Anyway, good luck!

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

                I didn't know that marking a Good Answer would mark the thread as Answered.

                Still looking for responses; hope the 'Answered' tag doesn't cause too many people to pass the topic over.

                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. If you do not have it set to nofollow, there is a slight chance they would follow it, but as stated above, Google is pretty good about parsing javascript links.

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  • Can 'follow' rather than 'nofollow' links be damaging partner's SEO
                    LureCreative
                    LureCreative
                    0
                    4
                    112

                  • To No Follow, or to Not No Follow?
                    BCutrer
                    BCutrer
                    0
                    3
                    56

                  • Do links to a domain that re-directs to my domain pass link equity?
                    kevinliao
                    kevinliao
                    0
                    3
                    74

                  • What type of links should be followed and nofollowed internally?
                    DesignBigger
                    DesignBigger
                    0
                    7
                    474

                  • Do Outbound NoFollow Links Reduce the Page's Ability to Pass PageRank?
                    EGOL
                    EGOL
                    0
                    4
                    623

                  • I currently have a client that has multiple domains for multiple brands that share the same IP Address. Will link juice be passed along to the different sites when they link to one another or will it simply be considered internal linking?
                    Nobody1560986989723
                    Nobody1560986989723
                    0
                    6
                    739

                  • Blog links - follow or nofollow?
                    mjtaylor
                    mjtaylor
                    0
                    12
                    689

                  • Developer is using Javascript links on .net for accessiblity purposes. Pages behind the JS links are being indexed, but link juice does not apear to follow. What are some work arounds I can review?
                    AlanBleiweiss
                    AlanBleiweiss
                    0
                    4
                    897

                  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