Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] How can search engines see a js include for navigation?


  • From: javascript@xxxxxxxxxx (josh@xxxxxxxxx)
  • Subject: [Javascript] How can search engines see a js include for navigation?
  • Date: Fri, 22 Mar 2002 17:05:45 +0100

> This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

--MS_Mac_OE_3099661545_1290165_MIME_Part
Content-type: text/plain; charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable

Hello,

New to the list. My first post. Hi.

I'm building a site where I would like to use an include for my navigation.
I know how to do it but read about a caveat on this page:

http://javascript.about.com/library/weekly/aa102901a.htm

"Caveats

There are a couple of potential downsides to using this technique.=A0 First,
search engines do not process JavaScript, so any content written by your
scripts will not be indexed by a search engine.=A0 This can be a problem if
you are using the include file as your main way of providing site
navigation.=A0 Unless you provide another way for the search engine to see
your links, such as using the <noscript> tag, the search engine will not
follow your JavaScript generated links to subsequent pages."

Using the <noscript> tag seems to defeat the purpose of an include because
you'd have to put it on every page. So, how can I put my navigation in an
include that is still searchable? Another way in Javascript? SSI?

Links to resources for the solution are appreciated.

- Josh Draper 

--MS_Mac_OE_3099661545_1290165_MIME_Part
Content-type: text/html; charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable

<HTML>
<HEAD>
<TITLE>How can search engines see a js include for navigation?</TITLE>
</HEAD>
<BODY>
Hello,<BR>
<BR>
New to the list. My first post. Hi.<BR>
<BR>
I'm building a site where I would like to use an include for my navigation.=
 I know how to do it but read about a caveat on this page:<BR>
<BR>
http://javascript.about.com/library/weekly/aa102901a.htm<BR>
<BR>
&quot;<FONT SIZE=3D"4"><B>Caveats<BR>
</B></FONT><FONT SIZE=3D"5"><FONT FACE=3D"Times New Roman"><BR>
</FONT></FONT><FONT SIZE=3D"4">There are a couple of potential downsides to u=
sing this technique.=A0 First, search engines do not process JavaScript, so an=
y content written by your scripts will not be indexed by a search engine.=A0 T=
his can be a problem if you are using the include file as your main way of p=
roviding site navigation.=A0 Unless you provide another way for the search eng=
ine to see your links, such as using the <I>&lt;noscript&gt;</I> tag, the se=
arch engine will not follow your JavaScript generated links to subsequent pa=
ges.&quot;<BR>
<BR>
Using the &lt;noscript&gt; tag seems to defeat the purpose of an include be=
cause you'd have to put it on every page. So, how can I put my navigation in=
 an include that is still searchable? Another way in Javascript? SSI? <BR>
<BR>
Links to resources for the solution are appreciated.<BR>
<BR>
- Josh Draper</FONT>
</BODY>
</HTML>


--MS_Mac_OE_3099661545_1290165_MIME_Part--