Is this link follow or nofollow? Does it pass linkjuice?
-
I have been seeing conflicting opinions about how Google would treat links using 'onclick'.
For the example provided below: Would Google follow this link and pass the appropriate linking metrics(it is internal and points to a deeper level in our visnav)?
=-=-=-=-=-=-=
<div id='<a class="attribute-value">navBoxContainer</a>' class="<a class="attribute-value">textClass</a>">
<div id="<a class="attribute-value">boxTitle</a>" onclick="<a class="attribute-value">location.href='bla</a>h.example.com">
<div class="<a class="attribute-value">boxTitleContent</a>" title="<a class="attribute-value">Text Here</a>"><a href<a class="attribute-value">Text Here</a>"><a ="blah.exam.cpleom">Text Herea>div> ``` =-=-=-=-=-=-= An simple yes/no would be alright, but any detail/explination you could provide would be helpful and very much appreciated. Thank you all for your time and responses.
-
Since the onclick event is a Javascript issue it's to all intents and purposes ignored by the search engines. What counts is whether or not your link appears in the href attribute, and whether or not the link is nofollowed. If you do not have it set to nofollow, there is a slight chance they would follow it, but as stated above, Google is pretty good about parsing javascript links.
-
I didn't know that marking a Good Answer would mark the thread as Answered.
Still looking for responses; hope the 'Answered' tag doesn't cause too many people to pass the topic over.
-
Fair enough! If there are conflicting opinions, I'll be surprised. Google has said since about 2008 or 09 that they are parsing Javascript functionality. Something about creating virtual link structures for spiders, blah blah but that's irrelevant really.
Anyway, good luck!
-
Yes, the code isn't posted here 'as-is'.
I appreciate the quick response and the explination. I will wait for some other voices to chime in with their thoughts but I suspect they will mirror yours (although I am very interested in conflicting opinions if they are out there).
-
Well I'm assuming this code is modified and isn't live anywhere as it's kind of a mess and I don't mean formatting-wise. That said, clearly your question is mainly on the div onClick functionality and whether or not that passes link juice.
To my knowledge, so long as the href is in place you will be fine. Google parses Javascript functionality pretty well and this is one of the simpler JS functions around.
So my answer is: yes.
-
Tabbing seems to have scrunched the code, maybe this is easier to read
<div id='<a rel="nofollow" target="_blank">navBoxContainer</a>' class="<a rel="nofollow" target="_blank">textClass</a>">
<div id="<a rel="nofollow" target="_blank">boxTitle</a>" onclick="<a rel="nofollow" target="_blank">location.href='bla</a>h.example.com">
<div class="<a rel="nofollow" target="_blank">boxTitleContent</a>" title="<a rel="nofollow" target="_blank">Text Here</a>"><a href<a rel="nofollow" target="_blank">Text Here</a>"><a ="blah.exam.cpleom">Text Herea>div>
Hope that helps.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Should I have home listings not followed?
Hi, I currently am doing digital marketing for a home builder. Here is one of our challenges: we build homes, create the page to sell them, details on the house are put up, Google crawls them, and then the house sells and I need to take it off the site. This is just creating a constant redirect process that I'm OK with but I'm just thinking I'd rather have Google not know they exist and delete them. I have community pages and floor plan pages with evergreen content and a blog that's doing well. I'm OK with Google not seeing these pages, but I'd really like to know what others in the industry do and what Moz thinks is best. I have a working theory of creating 10-15 pages where I rotate the houses: house 1 is posted and once it sells replace site content with house 16 (assuming 15 pages already exist with 15 houses). Reason - none of my listing pages have any page authority and it overall just makes the site un-authoritative. I know the domain authority is a different ranking factor, but I need the pages to be stronger or just not there. I'd love confirmation that that shouldn't be a concern for me as it seems to be one that I've inherited through years of SEO marketing paranoia.
Intermediate & Advanced SEO | | AvexHomes2 -
How i get link to my website
hi i'm very new in seo want to have links to my website:www.warningbroker.com how i can get links to my website?
Intermediate & Advanced SEO | | marketing660 -
Link building strategy
Hello Moz Community, For the last couple of months we have been trying to improve our ranking in Google UK for the keyword "church candles" http://www.wattsandco.com/church-supplies/church-candles.html We’ve been contacting relevant interiors/lifestyle blogs to feature our candles including anchor text linking back to our page. Our anchor text has been predominately our brand (Watts & Co) but also other key search terms (Watts and Co church candles, Watts and Co pillar candles). We have been tracking our ranking for the keyword “Church candles” using the Moz “ Rank Tracker” and we started on position 15 in Google UK. We went up to 12 briefly before moving down every week to 15, 17, 19 and 22. We checked today and we have moved back up slightly to 19. Our progress seems to be a bit slow and inconsistent. We wanted to reach out for any advice on how we can move up? If there was any way we can improve our strategy? Here’s the links we have built so far: http://nostalgiecat.blogspot.co.uk/2015/10/what-autumn-means-to-me.html http://blog.pollyrowan.com/2015/10/5-small-ways-to-decorate-your-home-that.html http://www.happyhomebird.com/2015/10/watts-co-candles-for-cosy-autumn-home.html http://www.frolic-blog.com/2015/10/beeswax-candles-for-fall/ http://hisforhomeblog.com/lighting/watts-co-church-candles/#axzz3qhqN1wzA http://lorilangille.blogspot.co.uk/2015/11/sponsored-post-watts-and-co.html http://www.californiahomedesign.com/product-finds/waxing-poetic-must-have-candles Thanks so much!
Intermediate & Advanced SEO | | roberthseo0 -
No follow vs do follow the how to
Hi Guys, Sorry if this is an ammature question, just wanted to know I noticed a few people talking about no follows and do follows for backlinks. Is there suppose to be some way to set you website up as nofollow and dofollow for backlinks? I noticed a few people saying to make sure that some directories are nofollow, i would like to know if I can set this up for my own site as I'm a bit conscious and paranoid about others that might backlink to my site who have huge spam or negative seo etc? Any insight into this would be much appreciated Thanks all
Intermediate & Advanced SEO | | edward-may0 -
Disavow Links Notification
No manual actions on our sites, just Penguin related. I put in a disavow for one site in October and Webmaster Tools kept a message up for some time saying the disavow links file for that site had been updated. I put in a disavow for another site of ours last week and I've had no such message. I checked and the file is there. Was this an intentional change on Google's part? Just want to make sure something's not messed up here.
Intermediate & Advanced SEO | | Kingof50 -
Counting over-optimised links - do internal links count too?
To whit: In working out whether I've too many over-optimised links pointing to my homepage, do I look at just external links -- or also the links from my internal pages to my homepage? In other words, can a natural link profile from internal pages help dilute overoptimisation from external links?
Intermediate & Advanced SEO | | Jeepster0 -
Is link juice passed through a 301 and a canonical tag?
Hi all, I am led to believe that link juice does not pass through more than one 301 redirect, however what about a 301 and then a canonical meta tag? Here is an example: subdomain.site.com/uk/page/ -> 301 -> **www.**site.com/uk/page/ www.site.com**/uk/**page/ -> canonical -> www.site.com/page/ Thanks,
Intermediate & Advanced SEO | | Further
Chris0 -
Domain Links or SubDomain Links, which is better?
Hi, I only now found out that www.domain.com and www.domain.com/ are different. Most of my external links are directed to www.domain.com/
Intermediate & Advanced SEO | | BeytzNet
Which I understand is considered the subdomain and not the domain. Should I redirect? (and if so how?)
Should I post new links only to my domain?0