|Spiders and "onClick" and "HREF" in one link|
Will spiders follow the HREF if the link has an onClick?
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, :-)
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.
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.