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. Does google credit links from iFrames or created by Javascript, if so, is one more powerful than the other?

    Does google credit links from iFrames or created by Javascript, if so, is one more powerful than the other?

    Intermediate & Advanced SEO
    3 2 2.7k
    • 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.
    • adriandg
      adriandg last edited by

      Consider this example, because I want to be clear about what I mean.  You have two websites.  Lets all them www.a.com and www.b.com.

      On www.a.com/some/page, there is an iframe something like this:
      <iframe src="www.b.com/some/special/path"></iframe>
      Then content of this iframe is a bunch of pictures, text and numbers, as well as a group of links, linking each picture to www.b.com for example the links might be:
      www.b.com/content/1
      www.b.com/content/2
      www.b.com/content/3

      Questions:

      1. When google crawls **www.a.com/some/page, **does it pass link juice to www.b.com/content/*?
      2. Does google instead consider these to be internal links within b.com itself.  because links to www.b.com/content/ ** are actually from b.com itself, since the domain of the iframe is actually: www.b.com/some/special/path 3) Is there any amount of link juice passed from www.a.com/some/page to* www.b.com/some/special/path **because this is the src= element of an iframe that a.com is hosting?

      Consider an alternative setup.  Where instead of using an iframe the contents of the above described iFrame is actually added the the page dynamically using javascript, and a call to an API endpoint at b.com.  Resulting in these links being added directly to the body of a.com without being wrapped in an iframe element.

      Questions:
      4) Do these links that were created after page load still get crawled and credited by google? (i have heard in the past that google was going to start crawling javascript, i just don't know if this is known for a fact yet).
      5) Do links created on the client side hold the same weight as a link that was served directly via the backend html generation?

      1. If both the links within the iframe and the links within the javascript embed method pass link juice.  Is one preferred over the other? is one known to be more effective than the other?

      Thanks!

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

        Hi there.

        In short, Yes, iframes will pass link juice, but to the page, which is a source of iframe, not to pages, which are linked inside the iframe. And no, javascript created links are not passing rank flow.

        When using iframe, basically what you are doing is you are pointing to the container on another website, and whatever is inside that container, it's hosted on that another website. That's why rank flows only to src link.

        As for JS created links - they are considered hidden, devalued or obfuscated. Refer to this page on MOZ - https://moz.com/learn/seo/internal-link

        Hope this helps.

        adriandg 1 Reply Last reply Reply Quote 1
        • adriandg
          adriandg @DmitriiK last edited by

          Yeah, what you say is what i expected for iframes.  It makes sense that links inside the iframe would be considered internal links within the iframe provider's domain.  As the entire contents of that iframe is within the shadow dom of that provider's domain.

          I also just found this article:
          https://moz.com/ugc/can-google-really-access-content-in-javascript-really

          Which seems to indicate that google would crawl and recognize something like:
          $('#3rd-party-content').append('');

          BUT only if the javascript that creates these links actually lives on the same domain i.e. not targetdomain.com!

          Thanks for your help!

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Google WMT/search console: Thousands of "Links to your site" even only one back-link from a website.
            vtmoz
            vtmoz
            0
            3
            63

          • Will two navigation components (one removed by Javascript) impact Google rankings?
            Vijay-Gaur
            Vijay-Gaur
            0
            3
            58

          • How can I make sure Google is crawling a link from an iframe (video)?
            PhilNottingham
            PhilNottingham
            0
            12
            629

          • Google and javascript
            wrttnwrd
            wrttnwrd
            0
            3
            434

          • Does google can read the content of one Iframe and use it for the pagerank?
            IM_Learner
            IM_Learner
            0
            4
            537

          • Link to Google Places, or Google Maps?
            MiriamEllis
            MiriamEllis
            0
            4
            463

          • Google, Links and Javascript
            AlanBleiweiss
            AlanBleiweiss
            0
            5
            1.0k

          • 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