rel="nofollow" or javascript is better??

Discussion in 'HTML & Website Design' started by Quebec, Apr 25, 2007.

  1. #1
    hello,

    I normally use the following code when I dont want search engines to see a link:

    javascript:var handle=window.open('http://www.url.com/')


    is this method better or worse then rel="nofollow"

    Thanks

    Paul
     
    Quebec, Apr 25, 2007 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    Using javascript as a link is always a Bad Idea. As far as I know, all major search engines honor the rel="nofollow" convention.

    cheers,

    gary
     
    kk5st, Apr 25, 2007 IP
  3. Quebec

    Quebec Banned

    Messages:
    471
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #3
    why is it a bad idea?
     
    Quebec, Apr 25, 2007 IP
  4. AdamSee

    AdamSee Well-Known Member

    Messages:
    422
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    135
    #4
    Not everyone has JavaScript enabled (Mobile devices, screen readers, commercial users, people who choose to turn it off). A link is html, it shouldn't be substituted for JavaScript when the nofollow will do exactly what you want, whereas the JavaScript could easily end up breaking your site.
     
    AdamSee, Apr 25, 2007 IP
  5. Quebec

    Quebec Banned

    Messages:
    471
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Ok that was a clear answer, thanks
     
    Quebec, Apr 25, 2007 IP
  6. livingearth

    livingearth Well-Known Member

    Messages:
    1,469
    Likes Received:
    83
    Best Answers:
    0
    Trophy Points:
    140
    #6
    I think it depends on why you don't wanyt them to see the link. With rel=nofollow they will see the link but not follow it. With the right javascript they will not see the link at all. So if your purpose is to conserve PR rel=nofollow would work. but if you are interested in them not seeing your affiliate links the javascript would be better.
     
    livingearth, Apr 25, 2007 IP
  7. Webice

    Webice Peon

    Messages:
    49
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #7
    In my opinion you want links to be followed only by real visitors and not by searchengines. The best way is to use the rel="nofollow". Javascript have disadvantages:
    - not everybody has enabled javascript
    - you shouldn't just javascript in <a href="..."
    - you open for every visitor that clicks the link a new popup window?
     
    Webice, Apr 25, 2007 IP
  8. Neutrino

    Neutrino Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Spiders will still follow a "nofollow," but the link doesn't pass any PR juice. When you say you don't want search engines to see the link, javascript even obfuscated js is a good bet. If you just want them to not follow the link you can use robots.txt for that.
     
    Neutrino, Apr 27, 2007 IP