Welcome to WebmasterWorld Guest from 107.20.34.173

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

     

proboscis

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

10+ Year Member



Hi,

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>
</script>

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

Thanks!

capulet_x

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:

parent.window.open(yourURL)?

mehh

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