SEO-friendliness and Javascript

Discussion in 'Directories' started by mdalan, Sep 29, 2006.

  1. #1
    Hi, I think I understand what makes a directory SEO friendly or not, but let me check.

    If the links are statical (href=...) *but* also contain an onclick Javascript attribute, is that deemed SEO-unfriendly? I assume Google just ignores the Javascript attribute, right?
     
    mdalan, Sep 29, 2006 IP
  2. pipes

    pipes Prominent Member

    Messages:
    12,766
    Likes Received:
    958
    Best Answers:
    0
    Trophy Points:
    360
    #2
    Im wondering this too, asked a similar question recently.
     
    pipes, Sep 29, 2006 IP
  3. cormac

    cormac Peon

    Messages:
    3,662
    Likes Received:
    222
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yip or just cant read it. See SEO Corner, not a bad article.
     
    cormac, Sep 29, 2006 IP
  4. mdalan

    mdalan Active Member

    Messages:
    79
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #4
    That article basically says that Javascript surounding a link might be a red flag for search engines. How much of a flag, if at all, no one knows.

    Man, I'm tired of living in constant fear of our search engine overlords... :)
     
    mdalan, Sep 29, 2006 IP
  5. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #5
    A single onclick is OK but if the link contains too much JS then its not counted I understand.
     
    mad4, Sep 29, 2006 IP
  6. mdalan

    mdalan Active Member

    Messages:
    79
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #6
    Ah, thanks mad4. "Too much JS" as in "the code on that onclick being too long", or as in "also onmouseover JS etc" ?
     
    mdalan, Sep 29, 2006 IP
  7. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I am not sure to be honest...........probably a bit of both.
     
    mad4, Sep 29, 2006 IP
  8. mdalan

    mdalan Active Member

    Messages:
    79
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #8
    Well, in any case, moving the code from inside the onclick to a separate functions makes the length of onclick irrelevant.
     
    mdalan, Sep 29, 2006 IP