Forum Moderators: open
They are tracking the clickouts with the following bit of code:
<a href="http://www.clientssite.com/redirect.jsp?url=http://www.widgets.com" onclick="return confirm('You will now leave this site and goto widgets.com. We need this message for legal reasons ');"
>link</a>
There are certain legal issues which mean that there must be a warning box pop-up telling the user that they are leaving the site when they click the link, so they're using a js confirm box.
As the ultimate goal of this site is to funnel users to another site, I suggested that in order to promote the target site they would do well to make the redirect link spiderable (to pass PageRank, etc.), so I've tried to implement something like was dicussed here [webmasterworld.com] so spiders follow the href and browser the onclick:
<a href="http://www.widgets.com" onclick="return confirm('You will now leave this site and goto widgets.com. We need this message for legal reasons ');
window.top.location.href('http://www.clientssite.com/redirect.jsp?url=http://www.widgets.com');
return false;
">link</a>
... but I can't get it to work properly. Having the two onclick functions seems to be causing a problem. Can anyone see what I should be doing?
Cheers