Links implemented with JavaScript only — the fix
One or more links on this page are implemented using JavaScript event handlers (onclick, window.location) rather than standard <a> tags with href attributes. These links may not be crawlable by search engines.
Where this fits: internal linking in SEO
Internal links are how authority and discoverability flow through your site. They tell crawlers which pages exist, tell ranking systems which pages you consider important, and give users paths deeper into your content. Orphan pages (no internal links pointing to them) are nearly invisible to search engines regardless of quality. A deliberate internal-linking structure is one of the highest-leverage, fully-in-your-control SEO instruments.
Why links implemented with javascript only hurts your rankings
While Google can execute JavaScript, it does not always follow JavaScript-based navigation. Links without proper href attributes are not discoverable during the initial HTML crawl pass and may never be followed by search engines. This means the linked pages receive no link equity from this page and may not be discovered through crawling.
This is a high-severity issue: it directly suppresses rankings or click-through on the pages it affects. It belongs in your current sprint, prioritised by how many pages carry it.
How to fix it
Replace JavaScript-only links with standard <a> elements that have proper href attributes. If JavaScript functionality is needed for progressive enhancement, add it on top of a working HTML link.
<!-- Before -->
<span onclick="window.location='/page/'">Click me</span>
<!-- After -->
<a href="/page/">Click me</a>Internal linking best practices
- Link every new page from at least two existing relevant pages the day it ships.
- Use descriptive anchor text — 'pricing for agencies', never 'click here'.
- Fix broken internal links weekly; every 404 wastes both crawl budget and user trust.
- Build hub pages for your main topics and spoke out to detail pages.
- Keep orphan-page count at zero — if nothing links to it, neither will Google.
The full library: SEO best practices, by category.
Frequently asked questions
What does "Links implemented with JavaScript only" mean?
One or more links on this page are implemented using JavaScript event handlers (onclick, window.location) rather than standard <a> tags with href attributes. These links may not be crawlable by search engines.
Why does links implemented with javascript only matter for SEO?
While Google can execute JavaScript, it does not always follow JavaScript-based navigation. Links without proper href attributes are not discoverable during the initial HTML crawl pass and may never be followed by search engines. This means the linked pages receive no link equity from this page and may not be discovered through crawling.
How do I fix links implemented with javascript only?
Replace JavaScript-only links with standard <a> elements that have proper href attributes. If JavaScript functionality is needed for progressive enhancement, add it on top of a working HTML link.
How serious is this issue?
This is a high-severity issue: it directly suppresses rankings or click-through on the pages it affects. It belongs in your current sprint, prioritised by how many pages carry it. It belongs to the internal linking family of checks.
How do I find every page affected by this on my site?
Run a free Dr Urls audit: it crawls your site, detects links implemented with javascript only on every affected page, shows example URLs, and generates a ready-to-use fix task. Re-scan after fixing to verify the issue is gone.
Does your site have this issue?
A free Dr Urls audit crawls your site, finds every page affected by links implemented with javascript only, and hands you a ready-made fix task.
Check my site free