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
                  • ECommerce website with link to manufactures site for ordering - Should these links be follow or no follow?
                    EGOL
                    EGOL
                    0
                    4
                    132

                  • Nofollow links & nofollow blog comments - Should I remove
                    AlanMosley
                    AlanMosley
                    0
                    4
                    133

                  • Unpaid Followed Links & Canonical Links from Syndicated Content
                    JaneCopland
                    JaneCopland
                    0
                    3
                    100

                  • To follow or nofollow paid internal links?
                    Cyrus-Shepard
                    Cyrus-Shepard
                    0
                    7
                    204

                  • Do 404 Pages from Broken Links Still Pass Link Equity?
                    M_D_Golden_Peak
                    M_D_Golden_Peak
                    0
                    8
                    4.3k

                  • Incoming affiliate links: is it better to follow or nofollow?
                    fablau
                    fablau
                    0
                    9
                    1.7k

                  • Is it better "nofollow" or "follow" links to external social pages?
                    ITestenseAdv
                    ITestenseAdv
                    7
                    5
                    22.2k

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

                  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