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

msg:229186 | 12:07 pm on Aug 2, 2005 (gmt 0) | Hi, 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, :-) James.
|
Jim Westergren

msg:229187 | 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
|
JamieBrown

msg:229188 | 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. Cheers, Jamie.
|
|
|