Welcome to WebmasterWorld Guest from

Forum Moderators: Robert Charlton & goodroi

Message Too Old, No Replies

Javascript void and PR

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

Preferred Member

10+ Year Member

joined:Apr 29, 2008
posts: 624
votes: 0

I was wondering if when you have a menu that is not active ( with a javascrip void link ) it is passes PR or no ?
5:56 pm on Jan 31, 2012 (gmt 0)

Senior Member

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

joined:May 26, 2000
votes: 0

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.
6:57 pm on Jan 31, 2012 (gmt 0)

Junior Member

5+ Year Member

joined:July 13, 2010
posts: 119
votes: 0

Hoe would you setup a test like that?

And can you assume goggle reads standard libraries easyer than custom JavaScript code?
10:42 am on Feb 1, 2012 (gmt 0)

Preferred Member

10+ Year Member

joined:Apr 29, 2008
posts: 624
votes: 0

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

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
2:49 pm on Feb 1, 2012 (gmt 0)

Full Member

5+ Year Member

joined:Mar 22, 2011
votes: 0

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


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members