Forum Moderators: open

Message Too Old, No Replies

JavaScript Indexing Question

JavaScript Indexing Question

         

WebDude911

5:30 pm on Aug 24, 2006 (gmt 0)

10+ Year Member



Hi,

While I know that having a full blurb of JavaScript in HTML tends to be ignored by the spiders, would a link such as this snippet be accessible?

<li><a href="javascript:choosePage('testingthispage.jsp?section=10001')" id="10001">Newest Releases</a></li

Thanks!

-Web Dude

RonPK

7:34 pm on Aug 24, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm not sure. The best way to write such a link is probably this:

<a href="testingthispage.jsp?section=10001" onclick="choosePage('testingthispage.jsp?section=10001'); return false">follow me</a>

JavaScript-capable clients will call the choosePage() method. Other clients will follow the ordinary link.

penders

5:48 pm on Aug 26, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



<a href="javascript:choosePage('testingthispage.jsp?section=10001')" id="10001">

I would very much doubt that any spider/search engine would attempt to execute that javascript url.

RonPk's answer is certainly the preferable way of writing it, however, I have read that any links that rely on the querystring ie. "?section=10001" are not particulary search engine friendly either - although I don't know how true that is?! This is when Apache's ability to use the .htaccess file to rewrite URLs into much more (search engine) friendly URLs is required - I think.