1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How Google treat link href with Java onclick?

Discussion in 'Google' started by Sxperm, Mar 5, 2009.

  1. #1
    I wonder how Google treat this type of link

    
    <a href="http://www.domain.com" onclick="blah" target="_blank">bum</a>
    
    Code (markup):
    Will Google read the link in a href? Will this link pass important and PR? I have a question because of Java onclick that embed in the link.
     
    Sxperm, Mar 5, 2009 IP
  2. wisam74us

    wisam74us Well-Known Member

    Messages:
    1,059
    Likes Received:
    47
    Best Answers:
    0
    Trophy Points:
    168
    #2
    This not the ideal way to link to a document in Javascript, however it still work using document.write

    <script type="text/javascript">
    document.write("<a href=\"http://www.domain.com\" onclick=\"blah\" target=\"_blank\">bum</a>")
    </script>

    In that case search engine will crawl the link but they shouldn't pass a link juice.
     
    wisam74us, Mar 5, 2009 IP
  3. Sxperm

    Sxperm Notable Member

    Messages:
    4,386
    Likes Received:
    142
    Best Answers:
    0
    Trophy Points:
    225
    #3
    Did you mean the example I gave or the example you give? Is my example pass link juice or not? :)

    Thank you
     
    Sxperm, Mar 5, 2009 IP
  4. izwanmad

    izwanmad Banned

    Messages:
    1,064
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It will pass link juice. But, I didn't found any reference about that. that just my opinion.
     
    izwanmad, Mar 5, 2009 IP
  5. Sxperm

    Sxperm Notable Member

    Messages:
    4,386
    Likes Received:
    142
    Best Answers:
    0
    Trophy Points:
    225
    #5
    Thank you :) I just think the <a href> part should pass link juice but wonder if java onclick may effect on the pass of link juice or not.
     
    Sxperm, Mar 5, 2009 IP
  6. wisam74us

    wisam74us Well-Known Member

    Messages:
    1,059
    Likes Received:
    47
    Best Answers:
    0
    Trophy Points:
    168
    #6
    You need to include your example inside a Javascript code the way I have done it in order to make a your question clear, links within Javascript don not pass PR as they are heavily used by ads system such as Google Adsense or Adbrite and banner rotation systems, if Google will pass PR juice through them that will cause a lot of confusion. BUT if you refer to click counters or other on click JS tags then they should not affect the page rank flaw
     
    wisam74us, Mar 5, 2009 IP
    Sxperm likes this.
  7. Sxperm

    Sxperm Notable Member

    Messages:
    4,386
    Likes Received:
    142
    Best Answers:
    0
    Trophy Points:
    225
    #7
    Thank you :) Rep added
     
    Sxperm, Mar 5, 2009 IP
  8. freelistfool

    freelistfool Peon

    Messages:
    1,801
    Likes Received:
    101
    Best Answers:
    0
    Trophy Points:
    0
    #8
    As long as you use an anchor tag (a href=...) without a nofollow attribute it will pass link juice. If you convert it to javascript then it won't pass link juice and google won't follow it.

    Bottom line the onclick or mouseover in an anchor tag won't harm its link juice.
     
    freelistfool, Mar 5, 2009 IP