Mobile app version of vmapp.org
Login or Join
Jessie594

: SEO impact of links without href I have some links on my site that are used only with JavaScript, hence they don't need a href attribute. I'm doing so because there's no need to have the

@Jessie594

Posted in: #Anchor #Links #Seo

I have some links on my site that are used only with JavaScript, hence they don't need a href attribute.

I'm doing so because there's no need to have the URL displayed in the browser. Is there any SEO impact of doing this?

I can also use href="#", but I'm not sure it's better. Or should I use another tag entirely? What are the best practices?

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Jessie594

3 Comments

Sorted by latest first Latest Oldest Best

 

@Odierno851

I suppose there is no negative SEO impact on having links that lead nowhere. But on the other side (the programmers side), why use an anchor when you are not actually using it's functionality? Why not use a div or a span in which case you won't have to override the default anchor styles neither use preventDefault to prevent anchor's default behaviour.

10% popularity Vote Up Vote Down


 

@Ogunnowo487

Yes..It does have a strong but negative SEO impact..Google crawlers doesn't recognize your links and there for may not index them .AT STAKES THEY MAY TAKE DAYS OR MONTHS TO INDEX YOUR LINKS.
So you should take care to add href and rel no follow tags according to your link nature..

10% popularity Vote Up Vote Down


 

@Ann8826881

I have some links on my site that are used only with javascript, hence they don't need a href attribute.


There might be a need in order to be more accessible?


Is there any SEO impact of doing this?


The "SEO impact" is that these "links" might simply be ignored. If Google is clever enough to evaluate your JavaScript then it might count something? But this probably depends on the nature of the link - by the sounds of it, these "links" are not simply linking to another resource (as otherwise there is no reason to omit the href attribute)?

If an anchor is only used by JavaScript and makes no sense without JavaScript then the entire anchor element should be generated with JavaScript.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme