Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

How do you make a javascript link that doesn't pass pr?

instead of using rel nofollow

7:33 pm on May 6, 2007 (gmt 0)

Preferred Member

10+ Year Member

joined:May 21, 2004
votes: 0


I'm trying to figure out how to use javascript on my paid links in the way that Matt Cutts recommended, so that they don't pass pr, and I don't know what I'm doing :)

Will this work?

<script type="text/javascript">
<a href=”#” onclick=”window.open(’link’)”>text</a>

How would I change that so the link doesn't open in a new window?


12:57 am on May 7, 2007 (gmt 0)

Junior Member

5+ Year Member

joined:Mar 24, 2007
votes: 0

I'll admit I don't know javascript very well but can you use something like:


11:28 am on May 7, 2007 (gmt 0)

Full Member

5+ Year Member

joined:Feb 12, 2006
votes: 0

<a href=”#” onclick=”window.location.href='somepage.html'”>text</a>.

You don't need the script tags around it


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members