homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Marketing and Biz Dev / General Search Engine Marketing Issues
Forum Library, Charter, Moderators: mademetop

General Search Engine Marketing Issues Forum

Spiders and "onClick" and "HREF" in one link
Will spiders follow the HREF if the link has an onClick?

 12:07 pm on Aug 2, 2005 (gmt 0)


This is quite a random question. We're about to implement a change on our site which has involved the changing some links from "A HREF='blah.html'" to "A HREF='blah.html' onClick='blahFunction()'". blahFunction() submits a form.

This provides a little additional functionality to those users who have JavaScript enabled, while still letting the non-JavaScript users browse the site.

Does anyone know if the Google, Yahoo spiders etc still follow the HREF if the "A" tag has a onClick event? Or will it ignore it because it can't guarantee its seeing the same content as JavaScript enabled users?

Thanks in advance, :-)



Jim Westergren

 5:37 pm on Aug 2, 2005 (gmt 0)

On one of my sites I am using this:

<a href="link.php" target="page1" onClick="window.open('','page1','toolbar=0,location=0,directories=0,status=0, menubar=0,copyhistory=no,scrollbars=yes,resizable=yes,width=650,height=550,titlebar=no,left=180,top=40')">View all</A>

Those pages has been indexed well which confirms that the SEs can still follow the HREF.

/ Jim


 8:59 pm on Aug 2, 2005 (gmt 0)

Hi Jim,

Thanks very much for your reply! We'll go ahead and implement this change. If it causes any noticable problems I'll post a message here.



Global Options:
 top home search open messages active posts  

Home / Forums Index / Marketing and Biz Dev / General Search Engine Marketing Issues
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved