Welcome to WebmasterWorld Guest from 54.163.68.15

Forum Moderators: martinibuster

Message Too Old, No Replies

do search engines follow href="#" links?

   
8:19 am on Jun 27, 2007 (gmt 0)

5+ Year Member



im working on a 3 tier menu system for a site. the first two tier links are of the format <a href="#" onclick()> and use the onclick function to populate the tier below.

the third tier has the actual page URIs in the links.

will search engines follow the two # links to get to these links?

11:33 am on Jun 28, 2007 (gmt 0)

5+ Year Member



Are you talking about level 1 to level 3 deep links?
11:53 am on Jun 28, 2007 (gmt 0)

WebmasterWorld Senior Member pageoneresults is a WebmasterWorld Top Contributor of All Time 10+ Year Member



will search engines follow the two # links to get to these links?

No they won't.

Fragment identifiers have a special role in information retrieval systems as the primary form of client-side indirect referencing, allowing an author to specifically identify aspects of an existing resource that are only indirectly provided by the resource owner. As such, the fragment identifier is not used in the scheme-specific processing of a URI; instead, the fragment identifier is separated from the rest of the URI prior to a dereference, and thus the identifying information within the fragment itself is dereferenced solely by the user agent, regardless of the URI scheme. Although this separate handling is often perceived to be a loss of information, particularly for accurate redirection of references as resources move over time, it also serves to prevent information providers from denying reference authors the right to refer to information within a resource selectively. Indirect referencing also provides additional flexibility and extensibility to systems that use URIs, as new media types are easier to define and deploy than new schemes of identification.

Uniform Resource Identifier (URI): Generic Syntax - 3.5. Fragment
[gbiv.com...]

Emphasis mine.

12:24 pm on Jun 28, 2007 (gmt 0)

WebmasterWorld Senior Member pageoneresults is a WebmasterWorld Top Contributor of All Time 10+ Year Member



<a href="#" onclick()> and use the onclick function to populate the tier below.

Are the links visible in the source before the onclick event? If not, they are hidden from the bot and won't get indexed.

1:00 pm on Jun 28, 2007 (gmt 0)

WebmasterWorld Senior Member vincevincevince is a WebmasterWorld Top Contributor of All Time 10+ Year Member



It is better to use the actual URL in the href= part, and let the javascript return false; so that if it javascript is followed, it won't then follow the href=
4:00 pm on Jun 28, 2007 (gmt 0)

5+ Year Member



thanks for the great replies. i have redesigned the menu so it doesnt use js to populate itself.
9:41 am on Jul 11, 2007 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



so this method can be used to mask affiliate links?