html+js links - advanced seo question

peterwild

New Member
hi guys,

the following questions regards a <a href> + javascript on click combined in a link.

look at the following code:
<a href=http://www.v7n.com/forums/seo-forum/"domain.com" onclick="javascript:window.open('domain.com/affiliate-link.html');return false;"><img src=http://www.v7n.com/forums/seo-forum/"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 Quote: Originally Posted by datentravel 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). The link referred by the <a> tag, i.e. the one within the 'href' attribute.

Quote: Originally Posted by datentravel 2. can the alt tag be counted as an anchor text for this link? Unsure, but it surely can help the image get ranked for the keyword within the 'alt' tag and the chances increase if the link being led to is related/specific to that particular keyword.

Quote: Originally Posted by datentravel 3. can this be called a "sneaky javascript redirect" ? can this be picked up by SE as cloaking? To be honest, in my opinion i believe Yes. Quote: Originally Posted by datentravel 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). In this case, the href will be counted.

Quote: Originally Posted by datentravel 2. can the alt tag be counted as an anchor text for this link? No, in this case, the anchor text will be empty. Alt tag of image or title tag of <a> tag only helps search engines understand the content and content of your link.

Quote: Originally Posted by datentravel 3. can this be called a "sneaky javascript redirect" ? can this be picked up by SE as cloaking? I believe Yes. Why don't you use 503 redirect type. It's more efficient and search-engine-friendly than this sneaky way.
 
Back
Top