Forum Moderators: open
<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.
<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.