Forum Moderators: open

Message Too Old, No Replies

Will a JS link pass on PR?

         

Harley_m

4:13 pm on Feb 13, 2003 (gmt 0)

10+ Year Member



if i write a link as :

<a href="JavaScript:openWin(http://www.website.com" target="_blank")">Great Website</a>

will it still pass on PR to that site...?

Thanks,

Harley

Harley_m

11:22 am on Feb 14, 2003 (gmt 0)

10+ Year Member



anyone...?

ukgimp

11:38 am on Feb 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Can you try and whack it through a lynx viewer. If it can read it it might work

mpvader

12:41 pm on Feb 14, 2003 (gmt 0)

10+ Year Member



I wouldn't go for it. Just use <a href=http://mywebsite.com target=_blank>

then you are sure it works!

taxpod

12:47 pm on Feb 14, 2003 (gmt 0)

10+ Year Member



I've seen it said for a long time that a JS link will not pass PR but I think this has changed. I've seen the result of JS cached and I believe I've seen backlinks registered for a link imbedded in code. But I may not understand exactly what is going on with this so I could be wrong.

If someone is linking to you this way after you've agreed to trade links, you should assume that whether the link passes PR or not, your "friend" has done it because he thinks PR will not be passed. If you are linking to others with whom you are trading, be aware that the other guy may assume you are doing this to prevent passing PR and he may get angry at you.

Receptional Andy

1:02 pm on Feb 14, 2003 (gmt 0)



For javascript links I tend to go for onClick events so that you can still have a standard link:

<a href="thepage.htm" target="_blank" onClick="window.open('thepage.htm'); return false;">

This will you can still do javascript trickery like window sizing etc. without losing PR, and also visitors without javascript won't get stuck.

Harley_m

11:23 pm on Feb 14, 2003 (gmt 0)

10+ Year Member



I dont want to pass on PR - its alink that is needed - but going to site im not comfortable with linking to for PR purposes...

will...

<a href="thepage.htm" target="_blank" onClick="window.open('thepage.htm'); return false;">

sort this...?

Thanks for all the help

Harley

johnraphone

11:49 pm on Feb 14, 2003 (gmt 0)

10+ Year Member



Jeeze, just give them a link. If its relevent content to your page then just give then a link without worrying about page rank. Remeber you design your site for user useability first and foremost.

toddb

1:09 am on Feb 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I could use the answer to this too as I have a few advertising links and i think google now spiders them as links as it can do the more complicated ones now. So I was thinking of java scripting them to avoid passing PR to some sponsor who does nto need it and cutting down on my links out.

Powdork

10:06 am on Feb 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Put this in the head
<script language="JavaScript" src="directory/links.js"></script>

and this for the link
<a href="javascript:url()"</a>

and this would be the .js file
function url() { hidden=open('http://www.domainyoudontwanttogiveprto.com','NewWindow','status=no,resizable=yes,scrollbars=yes');
}

Then you would protect the directory the .js file is in with robots.txt.

You can play with the different js variables like scroll bars window size etc. I use it for a site that receives all its links from one site that has good pr. It links back extensively across many pages so i don't want to have any cross linking issues arise.
Hope this helps

toddb

1:36 pm on Feb 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thank you it does.