|
|
 |
Re: FN-FORUM: Onclick event
date posted 1st March 2006 00:18
On Wednesday 01 March 2006 00:42, Lee Fogarty wrote:
> Any SEO experts know the answer to this?
>
> I have a tag that is a central container for the site. When the user
> clicks a menu item, only the div tag is updated (much like the old
> iframes).
>
> This means the actual hyperlink in the menu item is "#", and the page is
> loaded using the onclick event as the page is loaded using javascript.
>
> Does this mean that the pages won't be indexed by search engines? I am
> guessing not as it is my understanding that they will only follow the
> hyperlink & ignore events.
It won't be indexed, no. There are some potential workarounds:
1) Have separate pages for each different page you present - this is probably
the best way
2) Populate the links with "proper" hrefs, and then use javascript to change
the link hrefs in OnPageLoad or similar. You could have the links pointing
at full page versions of the same thing
If it's a question of re-using the same headers, etc, then you can use
something like server-side includes (SSIs) in Apache; it's also worth
remembering that if you have the same title on every page presented to a
search engine, it doesn't always help you come up so high in search
results...
Matt
|
 |
|