Welcome to WebmasterWorld Guest from 54.147.20.131

Message Too Old, No Replies

Javascript void and PR

     

member22

3:23 pm on Jan 31, 2012 (gmt 0)

5+ Year Member



I was wondering if when you have a menu that is not active ( with a javascrip void link ) it is passes PR or no ?

tedster

5:56 pm on Jan 31, 2012 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



The answer is "it depends." It depends on how the actual source of the link is defined through the JavaScript. If Google can process the script and find the target URL, they can (and sometimes do) treat it like a regular link. If the function being called is highly obscured, then probably not - although Google is improving their JavaScript processing all the time.

You can always set up a test environment and at least see whether anchor text influence gets passed through whatever method you are using. Also, you can test to find out whether the javascript link allows Google to discover a new URL. The last I tested with some basic scripts, they could.

Globetrotter

6:57 pm on Jan 31, 2012 (gmt 0)

5+ Year Member



Hoe would you setup a test like that?

And can you assume goggle reads standard libraries easyer than custom JavaScript code?

member22

10:42 am on Feb 1, 2012 (gmt 0)

5+ Year Member



Tedster if in the robot.txt I put the javascript void will it block google from passing PR ?

Here is the line of code that I have
<a href="javascript:void(0)" class="dj-up_a ">

If I write this in my robot.txt would it work
/javascript:void(0)

By the way does mailto: also passes PR ? and if it does it can I block it with a robot.txt ?

Here is the address I have
<a href="mailto:myemail@myemail.com">

If I write this in my robot.txt is it going to work
/mailto:myemail@myemail.com

rlange

2:49 pm on Feb 1, 2012 (gmt 0)



I'm assuming that Google's smart enough not to pass Page Rank to non-documents.

--
Ryan
 

Featured Threads

Hot Threads This Week

Hot Threads This Month