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)

10+ Year Member


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)

5+ Year Member

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)

5+ Year Member

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

You don't need the script tags around it


Featured Threads

Hot Threads This Week

Hot Threads This Month