Google has announced that placing ‘nofollow’ tags in your links will drain your PR juice – thereby eliminating one of the major incentives to using the nofollow tag that Google created in the first place.

Google has also announced that it’s spidering robots can now follow Javascript links.

So how do you create links that Google cannot follow, thus preserving your valuable PageRank?

In a nutshell, by placing your links in an external JavaScript file that robots are blocked from accessing.

Here are the steps:

1.  Include the following JavaScript code within the head section of your web page:

<script language=”JavaScript” src=”http://yourwebsite.com/javascript/links.js” type=”text/javascript”></script>

2. Prohibit robots from accessing your javascript subdirectory (or whatever you want to call it.

Include the following code within your robots.txt file:

User-agent: *
Disallow: /javascript/

3.  Put your links in the links.js file.

Use this format:

function link1() { location.href=’http://firstlinkgoeshere.com’; }

function link2() { location.href=’http://secondlinkgoeshere.com’; }

And so on.  Give each link a unique number.

4. Include the JavaScript link reference within your html pages.

<div onclick=”javascript:link1()” style=”text-decoration: none; color: #2E8FC6; cursor:pointer”> Link 1 Description</div><br><br>
<div onclick=”javascript:link2()” style=”text-decoration: none; color: #2E8FC6; cursor:pointer”> Link 2 Description</div><br><br>

(note: if you copy code from this post and your link does work, go manually into your files and change any ’smart’ or ‘curly’ quotation marks to regular quotation marks. )

Copy the code below to your web site.
x 
Leave a Reply