Links implemented with JavaScript only: what it is, why it matters, and how to fix it
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_links in SEO
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>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_links 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