<a href="javascript:void(0)"
onclick="javascript:location.href='http://url/register/login
?reffer='+encodeURIComponent(location.href)">
</a>
<a href="javascript:void(0)"
onclick="javascript:location.href='http://url/register/login
?reffer='+encodeURIComponent(location.href)">
</a>