set link href to JavaScript target URL