homepage Welcome to WebmasterWorld Guest from 54.163.91.250
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Does my nav menu allow internal cross-linking?
myrrh




msg:4343282
 5:52 pm on Jul 24, 2011 (gmt 0)

Some time ago I posted on the Accessibility forum a question about whether I should make the top-level menu
item of an expanding menu a link to a page.

One poster replied with a reason why I should do what I asked about:

One of the biggest reasons is that search engines (and other devices) don't execute JS, and you're missing
an opportunity for internal cross linking.


I want to make sure the SEs can spider all my pages and I think the way my menu is built addresses the concern raised above because the raw html document has all the URLs that make up the nav menu in an unordered list. In other words, JS is not required to be called from the server to display the nav menu content.

So, my question is just that - is the way my menu is built taking advantage of the "opportunity for internal cross-linking?"

The following is a partial description of how the menu works:

The menu is based on an unordered list...The layout for the main- and submenu items is specified in the CSS.


If that is not enough information to answer the question, I'll provide a sample of the nav menu.

 

daveVk




msg:4343397
 1:50 am on Jul 25, 2011 (gmt 0)

has all the URLs that make up the nav menu in an unordered list

By URLs I assume you mean anchor tags (links), I see no problem.

rainborick




msg:4343398
 1:56 am on Jul 25, 2011 (gmt 0)

If the <a>nchor tags are all in plain HTML, then the JavaScript doesn't matter for search engines. If the <a>nchor tags are generated by JavaScript, then Google (at least) will read the JavaScript, find the URLs, and will probably crawl them, but there's no counting on how much ranking benefit will be passed. On the whole, it's always best to provide a plain HTML link to the most important pages on your site for search engines, and not rely on their ability to parse JavaScript.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved