1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Javascript drop down menu

Discussion in 'White Hat SEO' started by sitestem, Jan 10, 2015.

  1. sitestem

    sitestem Registered Member

    Joined:
    Jun 12, 2013
    Messages:
    53
    Likes Received:
    7
    Hi all,


    I'm looking through a website which has a Javascript navigation to certain pages. From what I can tell, these pages are not linked to from anywhere else on the site - apart from through these drop down menus.


    I've looked at the source and there is no mention of the URL anywhere - so the menu is relying purely on Javascript.


    It looks as though the sitemap file is making sure that Google indexes these pages. I'm just wondering if this is enough? Or are the pages in question losing out because they don't have any "real" internal links pointing towards them, just a Javascript drop down?


    Any help would be much appreciated.


    Cheers.
     
  2. dsan996

    dsan996 Regular Member

    Joined:
    Apr 18, 2014
    Messages:
    267
    Likes Received:
    128
    Location:
    Depends on the day
    Google announced a few months ago that they are able to crawl javascript activated content (I've seen many examples of indexed javascript activated content before, but there was no official confirmation from them until last May):

    http://googlewebmastercentral.blogspot.ca/2014/05/understanding-web-pages-better.html

    You can try to render the page using the "Fetch as Google" option in GWT to check if the crawler is able to see the menu.

    In spite of the official announcement, I don't like to rely on javascript activated navigation very much so when optimizing a site I usually replace those kind of menus with html + CSS or at least place an alternative menu inside noscript tags.
     
  3. willisricharde

    willisricharde Newbie

    Joined:
    Jan 11, 2015
    Messages:
    13
    Likes Received:
    0
    Hi friends you need to contact any java script expert.
     
  4. Gogol

    Gogol Jr. VIP Jr. VIP

    Joined:
    Sep 10, 2010
    Messages:
    3,411
    Likes Received:
    3,057
    Gender:
    Male
    Well what I would do in this case is place the whole linking structure within <noscript> tag may be. Pure Javascript menu is bad IMO.. You are better off using a menu which falls back when javascript is not available.
     
  5. PHPInjected

    PHPInjected Elite Member

    Joined:
    Apr 25, 2014
    Messages:
    2,147
    Likes Received:
    1,875
    Occupation:
    100% Unique Content Writer
    Location:
    Overriding Methods
    Yeah, that is what he is doing here. Useless post.

    OP: You are better off creating an html5/css3 menu and calling the javascript to perform a function.
     
  6. Gogol

    Gogol Jr. VIP Jr. VIP

    Joined:
    Sep 10, 2010
    Messages:
    3,411
    Likes Received:
    3,057
    Gender:
    Male
    It's called racing to 15 posts ^_^
     
  7. PHPInjected

    PHPInjected Elite Member

    Joined:
    Apr 25, 2014
    Messages:
    2,147
    Likes Received:
    1,875
    Occupation:
    100% Unique Content Writer
    Location:
    Overriding Methods
    It is a rat race apparently. Ha.