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. Technical SEO Issues
    4. Does Google Read Javascript?

    Does Google Read Javascript?

    Technical SEO Issues
    6 6 3.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.
    • BrianJenkins
      BrianJenkins last edited by

      I would like to include a list of links in a select type box which I would like google to follow.  In order to do this, I will be styling it with the help of javascript, and in turn change the select box into a ul and the options into li's.  The li's would each contain a link, but if javascript is disabled it will fallback to a normal css styled select box.

      My question is would google follow the links made by the javascript?  Or would the bot just recognize the select box as a select box and not links.

      Thanks for any help!

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

        Google doesn't follow javascript so if you want the links followed on that page you'll need to somehow include them in your code.

        1 Reply Last reply Reply Quote 1
        • Highland
          Highland last edited by

          I would assume you're talking about using a JS method to create links in the DOM. The answer here is no, Googlebot will not recognize them. Google has improved their ability to read some JS (like if you use an embedded JS link Googlebot can understand that) but it does not interpret or execute JS that I know of.

          If you go this route, I would suggest enumerating your links in a noscript block.

          1 Reply Last reply Reply Quote 1
          • CustomerSolutionz
            CustomerSolutionz last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 1
            • Thos003
              Thos003 last edited by

              Matt says that Google can read some javascript...

              Danny Sullivan speculates that they will be able to see those links:

              http://searchengineland.com/google-can-now-execute-ajax-javascript-for-indexing-99518

              But in my opinion, if you want your links to be seen without a doubt, don't put them in java.

              Cyrus-Shepard 1 Reply Last reply Reply Quote 1
              • Cyrus-Shepard
                Cyrus-Shepard @Thos003 last edited by

                Some additional notes...

                Traditionally, Google hasn't followed javascript, but they are getting much better at using it for link discovery.

                Just a few weeks ago Matt Cutts made a video in which he recommended making your javascript more readable:

                http://www.youtube.com/watch?feature=player_embedded&v=8yTn_HLDaJs

                And some evidence in the wild about Google becoming more script friendly:

                http://www.webpronews.com/is-googlebot-getting-more-human-like-2012-05

                That said, it's still by far better for SEO purposes to ensure that your links are HTML based. Although Google may still discover javascript links, it's unknown what link attributes like anchor text and PageRank pass through them. Best practices, for now, still say to use regular HTML links.

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • Does Google read dynamic canonical tags?
                  SoulSurfer8
                  SoulSurfer8
                  0
                  5
                  519

                • Can google bots read my internal post links if they are all listed in a javascript accordian where I list my sources?
                  JordanLowry
                  JordanLowry
                  0
                  2
                  51

                • I am Using Wix website creator. Will google be able to read the javascript?
                  vcj
                  vcj
                  0
                  2
                  118

                • Google + and Google Knoladge Graph
                  MiriamEllis
                  MiriamEllis
                  0
                  14
                  188

                • What's going on with google index - javascript and google bot
                  Everett
                  Everett
                  0
                  4
                  475

                • How to optimize for different google seach center (google.de, google.ch) ?
                  Aleyda
                  Aleyda
                  0
                  4
                  270

                • Can Google read text in Javascript?
                  mickey11
                  mickey11
                  0
                  3
                  984

                • Google can read japanese or only alphabet ?
                  nipponx
                  nipponx
                  0
                  3
                  761

                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