homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

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)


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)

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)

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

You don't need the script tags around it

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved