|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.
Thanks in advance, :-)
| 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.
| 8:59 pm on Aug 2, 2005 (gmt 0)|
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.