Skip to content
    Moz logo Menu open Menu close
    • Products
      • Moz Pro
      • Moz Pro Home
      • Moz Local
      • Moz Local Home
      • STAT
      • Moz API
      • Moz API Home
      • Compare SEO Products
      • Moz Data
    • Free SEO Tools
      • Domain Analysis
      • Keyword Explorer
      • Link Explorer
      • Competitive Research
      • MozBar
      • More Free SEO Tools
    • Learn SEO
      • Beginner's Guide to SEO
      • SEO Learning Center
      • Moz Academy
      • SEO Q&A
      • Webinars, Whitepapers, & Guides
    • Blog
    • Why Moz
      • Agency Solutions
      • Enterprise Solutions
      • Small Business Solutions
      • Case Studies
      • The Moz Story
      • New Releases
    • Log in
    • Log out
    • Products
      • Moz Pro

        Your all-in-one suite of SEO essentials.

      • Moz Local

        Raise your local SEO visibility with complete local SEO management.

      • STAT

        SERP tracking and analytics for enterprise SEO experts.

      • Moz API

        Power your SEO with our index of over 44 trillion links.

      • Compare SEO Products

        See which Moz SEO solution best meets your business needs.

      • Moz Data

        Power your SEO strategy & AI models with custom data solutions.

      NEW Keyword Suggestions by Topic
      Moz Pro

      NEW Keyword Suggestions by Topic

      Learn more
    • Free SEO Tools
      • Domain Analysis

        Get top competitive SEO metrics like DA, top pages and more.

      • Keyword Explorer

        Find traffic-driving keywords with our 1.25 billion+ keyword index.

      • Link Explorer

        Explore over 40 trillion links for powerful backlink data.

      • Competitive Research

        Uncover valuable insights on your organic search competitors.

      • MozBar

        See top SEO metrics for free as you browse the web.

      • More Free SEO Tools

        Explore all the free SEO tools Moz has to offer.

      What is your Brand Authority?
      Moz

      What is your Brand Authority?

      Check yours now
    • Learn SEO
      • Beginner's Guide to SEO

        The #1 most popular introduction to SEO, trusted by millions.

      • SEO Learning Center

        Broaden your knowledge with SEO resources for all skill levels.

      • On-Demand Webinars

        Learn modern SEO best practices from industry experts.

      • How-To Guides

        Step-by-step guides to search success from the authority on SEO.

      • Moz Academy

        Upskill and get certified with on-demand courses & certifications.

      • SEO Q&A

        Insights & discussions from an SEO community of 500,000+.

      Unlock flexible pricing & new endpoints
      Moz API

      Unlock flexible pricing & new endpoints

      Find your plan
    • Blog
    • Why Moz
      • Small Business Solutions

        Uncover insights to make smarter marketing decisions in less time.

      • Agency Solutions

        Earn & keep valuable clients with unparalleled data & insights.

      • Enterprise Solutions

        Gain a competitive edge in the ever-changing world of search.

      • The Moz Story

        Moz was the first & remains the most trusted SEO company.

      • Case Studies

        Explore how Moz drives ROI with a proven track record of success.

      • New Releases

        Get the scoop on the latest and greatest from Moz.

      Surface actionable competitive intel
      New Feature

      Surface actionable competitive intel

      Learn More
    • Log in
      • Moz Pro
      • Moz Local
      • Moz Local Dashboard
      • Moz API
      • Moz API Dashboard
      • Moz Academy
    • Avatar
      • Moz Home
      • Notifications
      • Account & Billing
      • Manage Users
      • Community Profile
      • My Q&A
      • My Videos
      • Log Out

    The Moz Q&A Forum

    • Forum
    • Questions
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

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

    1. Home
    2. SEO Tactics
    3. On-Page Optimization
    4. Does show/hide element with javascript impact SEO

    Moz Q&A is closed.

    After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

    Does show/hide element with javascript impact SEO

    On-Page Optimization
    4
    5
    3233
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with question management privileges can see it.
    • VivaArturo
      VivaArturo last edited by

      Hi I am developing an ecommerce site and want to place text on all category and home page. The challenge is that 300 words of text for the pages does not fit into the design appropriately especially on the home page. If I were to use a show/hide element with javascript would this be seen as spam or a trick to the search engines.

      I do not think it is spam as it will be actual content for the site and the visitor can view it if they click on the show button.

      Would love to hear your thoughts?

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

        Thanks, appreciate your thoughts

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

          Ennovation and Malcolm are right - search engines will see the entire text, as long as the JS is just being used for show/hide (users without JS enabled will see the same thing).

          As long as there is an option to show the text (i.e. it's not completely hidden from users), and the text itself isn't keyword-stuffed or spammy, I can't see a reason why search engines would consider it spam.

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

            Google see the text anyway as it is hard coded into the html, the JS is only used on the front end to show the user so they can hide/show the text.

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

              You can make with js a expand link or read more....

              That will be ok... Search engines will see the entire text where as users will have to click to see the entire text...

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post

              Got a burning SEO question?

              Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


              Start my free trial


              Browse Questions

              Explore more categories

              • Moz Tools

                Chat with the community about the Moz tools.

              • SEO Tactics

                Discuss the SEO process with fellow marketers

              • Community

                Discuss industry events, jobs, and news!

              • Digital Marketing

                Chat about tactics outside of SEO

              • Research & Trends

                Dive into research and trends in the search industry.

              • Support

                Connect on product support and feature requests.

              • See all categories

              Related Questions

              • Kevin_P

                When Google rewrites a title tag, do you get the SEO impact for the original version?

                title tags on page optimization on-page meta data meta tags

                Let's say you're writing a homepage title tag like this: KEYWORD | BRAND and Google rewrites it as BRAND | KEYWORD From Moz and best practices, we believe that keywords closer to the beginning of a title tag may have more impact on search rankings. So, when Google rewrites the title tag, do you get the impact you would have made with the keyword being closer to the front? Or, does Google give you the impact you would have received with the keyword being at the end?

                On-Page Optimization | | Kevin_P
                0
              • TheresaWoods

                OnPage SEO

                I am about to start my website http://i-love-skiing.com/. I would like to know what OnPage ranking factors should I consider while launching or building my website. I want to rank higher on search results.

                On-Page Optimization | | TheresaWoods
                0
              • J05B

                Review markup not showing up in SERP anymore

                Hi all, I have been collecting reviews for a little while now. Ofcourse im hoping to cross the 150 reviews border soon 🙂 But i also added the review markup to my website to show up in organic results. This was working fine for a while. I did not added the markup to my homepage. But now for somehow google is not showing this review markup anymore in search results. So i decided to give the company that is hosting the review tool (google partner also) a call. The informed me that they had a lot of calls and e-mails since 2 weeks from their customers. All with the same problem that review markup is not used in search results anymore. Anyone else had this, or know about this issue?

                On-Page Optimization | | J05B
                0
              • Aquatell

                Why are http and https pages showing different domain/page authorities?

                My website www.aquatell.com was recently moved to the Shopify platform.  We chose to use the http domain, because we didn't want to change too much, too quickly by moving to https.  Only our shopping cart is using https protocol.  We noticed however, that https versions of our non-cart pages were being indexed, so we created canonical tags to point the https version of a page to the http version.  What's got me puzzled though, is when I use open site explorer to look at domain/page authority values, I get different scores for the http vs. https version.  And the https version is always better.  Example:  http://www.aquatell.com DA = 21 and https://www.aquatell.com DA = 27.  Can somebody please help me make sense of this?  Thanks,

                On-Page Optimization | | Aquatell
                1
              • bonganig

                Will ReDesigning my website negatively affect SEO?

                I currently have a one page website which lists all the company information on one page [domain name is www. bwd . co . za]. It uses javascript for navigation. My challenge is that the layout is outdated and I would like to update it with a high quality WordPress theme which will not be a one-pager. Currently on Open Site Explorer the website has a domain authority of 30/100 and page authority of 41/100. I've worked hard to push the numbers to get to where they are hence I'm a bit concerned. Will re-designing my website negatively affect SEO?

                On-Page Optimization | | bonganig
                0
              • david305

                Analyzing word count on page SEO

                Hey guys quick question, when I am analyzing/ doing word count for a particluar key word and I want to make sure that i am no where near Keyword stuffing, does Google consider the alt and title tags keywords of images as part of the KW count when looking for on page Keyword stuffing. For example. let say I have a page that i just created with 1000 words. and Only 2 of the words are my target Keywords. Then, if i add a picture and add the keyword to both the alt and title tag and description of the image, does google now consider the "page" to have a total of 5 keywords? Also, a lot has changed recently since penguin and panda, is there a good rule of thumb for what ratio to stay under as far as keywords to text.?

                On-Page Optimization | | david305
                0
              • kicksetc

                What is the most SEO friendly Shopping Cart?

                What is the most SEO friendly shopping cart?  I have been using zen-cart for 6 years.  Seems Google doesn't like it as much as other carts.  I started a new site about 6 months ago using Magento.  When I build links to this site the terms move.  The terms are very similar.  So I would imagine the competition is the same.  I am curious if anybody has tried with different carts and found anyone to be better than the others.  Also the new site has about one tenth the amount of products but has a lot more pages indexed.

                On-Page Optimization | | kicksetc
                0
              • TheSportsDaddy

                How do Maximize WordPress with 2 SEO Plugins

                I have 2 WordPress SEO Plugins,  Yoast and All-in-One SEO.  I have tried like heck to make them work together, but every time I crawl my site here, I get multiple error messages. My question is, how can I tweak the title settings to avoid having multiple meta desctiptions, titles etc.

                On-Page Optimization | | TheSportsDaddy
                0

              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
              Free SEO Tools
              • Domain Authority Checker
              • Link Explorer
              • Keyword Explorer
              • Competitive Research
              • Brand Authority 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 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
              • Accessibility
              • Terms of Use
              • Privacy

              Looks like your connection to Moz was lost, please wait while we try to reconnect.