Links only work with JavaScript
Links are buttons or script calls instead of real <a href> links, so crawlers cannot follow them to your other pages.
Why it matters #
Google Search Central says Google can only reliably discover links that are <a> elements with an href attribute. Links made from buttons, spans or onclick handlers, or <a> tags without a real address, may work for visitors but give crawlers nothing to follow.
If none of the links on a page are real, a crawler that lands there cannot find any other page from it, and no link value passes on.
How to fix it #
Use normal <a href="/page/"> links for navigation, menus, pages of results and product lists. The look can stay the same, and a script can still run when the link is clicked.
Check with the JavaScript SEO Checker, and see how link value flows through the site with the Link Juice Checker.
What it looks like, and fixed #
<span onclick="location.href='/benches/'">Benches</span>
<a href="javascript:void(0)" onclick="openPage('/tables/')">Tables</a>
Neither gives crawlers an address to follow.
<a href="/benches/">Benches</a>
<a href="/tables/">Tables</a>
Real links with an href. They can look the same, and a script can still run on click.
Fix it with your AI assistant #
Paste this into ChatGPT, Claude, Gemini or your coding agent. Fill in the words in [square brackets] first. It checks before it changes anything, changes only this, and tells you how to prove it worked.
Help me make the links on [the page address] of [your website address] crawlable. It uses [your platform, e.g. Next.js or WordPress]. A checker says links here are buttons, spans or script calls instead of real <a href> links, so crawlers cannot follow them to my other pages. First, read the HTML as served (or ask me to paste it) and list every navigation item that is not an <a> with a real href: onclick handlers, javascript: links, # links and buttons. Say which pages crawlers cannot reach. Then give me the fix: turn each one into a normal <a href="/page/"> link to the real address, keeping the same look, and keep any click script. Rules: buttons stay buttons for actions such as add to basket; keep page addresses and styles the same; back up or use a branch; and do not add nofollow. Give exact code and where it goes. Finally, tell me to re-check with the URSY.com JavaScript SEO Checker at ursy.com/javascript-seo-checker/.
We find the problems, and help you fix them
- Check Run a free tool or the full audit.
- Fix it with your AI Download your AI Fix Pack and drop it into ChatGPT, Claude or Gemini. A free account is enough.
- Re-check Come back, check again, and watch each fix turn green.
Fix it on your platform #
WordPress
In page builders, use the link field of buttons and menus rather than a click action or script. For "load more" lists, also keep normal numbered page links.
Shopify
Check custom menus, filters and "load more" buttons added by apps or theme code. Collection pages should keep normal links to products and to later pages.
A hand-made site
In React, Vue and similar frameworks, use the router's link component, which renders a real <a href>, not a click handler on a div or span.
Check it is fixed #
Run the JavaScript SEO Checker again: it should find real <a href> links in the HTML for menus, lists and pagination.
Official source #
Questions #
Is it wrong to use buttons at all?
No. Buttons are right for actions, such as adding to the basket. Links are for going to another page.
What about infinite scroll?
Keep normal numbered page links as well, with real addresses, so crawlers can reach every item.
More problems in JavaScript and rendering
- robots.txt blocks the site's script files High priority
- The words only appear after JavaScript runs High priority