The use of links in javascript is usually to prevent search engine robots from spidering these links. Many search engine robots are not able to follow javascript links.
rel=”nofollow”, is said to be the next biggest thing to be used by shady webmasters engaging in reciprocal link exchanges. This attribute was introduced by Google as a