hi guys, the following questions regards a <a href> + javascript on click combined in a link. look at the following code: <a href="domain.com" onclick="javascript:window.open('domain.com/affiliate-link.html');return false;"><img src="image.jpg" alt="image alt" border=0></a> elements we have: 1. A href link - to domain.com 2. onclick JS event who links to domain.com/affiliate-link.html 3. img src , inside the A HREF, with an alt tag. my question for you guys are: 1. which link will be counted to site domain.con - will it be the A HREF or the Javascript one? (the a href is a clean hardlink, the JS is a long affiliation link). 2. can the alt tag be counted as an anchor text for this link? 3. can this be called a "sneaky javascript redirect" ? can this be picked up by SE as cloaking? sorry to say, but i have not live example to show you guys, but based on your understanding, what do you think happens here? thanks
Link will be counted to domain.com/affiliate-link.html but not to domain.com. Search engines considers img alt text as anchor. Search engines won't consider it as cloaking. Google also have the capability to read and execute small JavaScript functions.