JavaScript links

Links that only appear after a page's scripts run, not in the page's plain HTML code.

Also called: JS links, JavaScript-only links, JS-rendered links, onclick links, JavaScript SEO links. In NodeLens: JavaScript-only links.

JavaScript links only appear after a page’s scripts run. They’re missing from the plain HTML the server sends. Some are real links added by scripts; others are buttons or onclick handlers that act like links but have no address.

Why it matters

Google can only follow a link that is an <a> element with an href address (Google Search Central). Links that scripts add are fine if they use that markup. But Google reads the plain HTML first and runs scripts later, when resources allow. That wait can be a few seconds or much longer (Google Search Central). So Google may find these links late, or never, if they lack a real address. A page reached only through them can end up an orphan page, a page no other page links to, in practice.

How NodeLens shows it

When JavaScript rendering is on, NodeLens reads each page twice: as plain HTML, and again after its scripts run. Then it compares the links. It finds rendered links that have an address, an <a> tag with an href. It doesn’t find onclick handlers with no address. The JS-only links card shows 4 counts: Only after JavaScript, Removed by JavaScript, In both and Reachable only via JS. The last one counts pages with no plain-HTML path from your home page. The Map has a JS-only links layer. When an important page depends on these links, Actions suggests Fix JS-only link: output the link as a plain <a href> in the HTML.