Is it OK to use javascript to embed outbound links?

Discussion in 'Link Development' started by Julia-IT-Inventors, Dec 20, 2005.

  1. #1
    I am not happy with situation when I have to place on the index page outbound links to many internal and external pages as they take off the index page PR. But I really have to do it, for example in Portfolio section, or to make some special offers linked from the index page, i.e. for marketing purpose mostly.

    Now I have about 35 outbound links from the index page and I want to drop it to 15 at least, so the left 20 I want to embed within Javascript.

    I am going to use this function:
    --------------------------------
    function go(url,page) {
    if (url=='local') {window.location="http://mysite.com/"+page;}
    else {window.location="http://"+url+"/"+page;}
    }--------------------------------

    So for outbound link to a page within the site the code will be

    <a href="#" onClick="javascript:go('local','pagename.html')">

    and for outbound link to another site the code will be

    <a href="#" onClick="javascript:go('www.sitename.com','')"

    So in HTML code all these 20 links will look like relative links to the index page http://mysite.com/#

    Does anybody have experience with similar things? What Google thinks about it? Is it safely to use this method and having about 20 links with http://mysite.com/# ?

    Thanks.
     
    Julia-IT-Inventors, Dec 20, 2005 IP
  2. ServerUnion

    ServerUnion Peon

    Messages:
    3,611
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can also use the rel=nofollow attribute within you <A> tag to keep the search engines from counting the links.

    I have used both on my sites. nofollow is a lot easier if you decide to count the links in the future.
     
    ServerUnion, Dec 20, 2005 IP
  3. Julia-IT-Inventors

    Julia-IT-Inventors Active Member

    Messages:
    369
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    58
    #3
    ServerUnion, thanks!

    So you've never got any problems with rel links with # pointed to the same page? Problems - I mean penalizing, dropping from G. index, and other unpleasant things
     
    Julia-IT-Inventors, Dec 20, 2005 IP
  4. nicknick

    nicknick Peon

    Messages:
    429
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #4
    nofollow is the way to go. I tested it out on a couple of sites and it works very well for Google. Not sure what it would do for Yahoo and MSN though.

    Good Luck
     
    nicknick, Dec 20, 2005 IP