1.4 Rendering & JavaScript ✦HighVerified
href=”#” or javascript:void(0) navigation
A link whose href is a bare hash or javascript:void(0) goes nowhere as far as a crawler is concerned. The real destination is hidden in script, so the link is not followed.
What it is
Anchors with no real destination.
Why it matters
No crawlable target, so linked content may be undiscoverable.
How to fix it
Provide real URLs in href.
How to find it on your site
- Search the HTML for href values of # or javascript:void(0).
- Identify what each is meant to navigate to.
- Give each anchor a real, resolvable href.
- Confirm crawlers now follow them.
Cross-reference to ranking and citation factors
Links need a real href target to pass signals and be followed. Placeholder hrefs waste the link entirely.
Impact
Medium-high. Direct.
Evidence
Links need resolvable href targets to be followed. Google Search Central, Understand JavaScript SEO Basics