got a tricky question foryou guys - SEO and HTML related

Discussion in 'Search Engine Optimization' started by bzzydogg, Nov 9, 2010.

  1. #1
    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
     
    bzzydogg, Nov 9, 2010 IP
  2. karpok

    karpok Active Member

    Messages:
    325
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #2
    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.
     
    karpok, Nov 9, 2010 IP
  3. Barre Tire

    Barre Tire Peon

    Messages:
    1,193
    Likes Received:
    79
    Best Answers:
    0
    Trophy Points:
    0
    #3
    However it is my understanding that Google is getting closer to reading more java script as well.
     
    Barre Tire, Nov 9, 2010 IP
  4. bogs

    bogs Active Member

    Messages:
    2,142
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    80
    #4
    it will be counter to the landing page of that link..
     
    bogs, Nov 9, 2010 IP