The problem
JavaScript doesn’t always load — a blocked script, a flaky connection, a search engine crawler that doesn’t execute it, a browser extension interfering. “Progressive enhancement” means your core content and actions still work without it, with JS adding polish on top, rather than being required for anything to function at all.
Expected outcome
By the end of this guide you will have a script that flags the specific HTML patterns that silently break without JavaScript, so you can fix them before a visitor with JS disabled (or failed) hits a dead link or a form that goes nowhere.
Requirements and costs
- Node.js (version 18 or newer).
- Cost: free. No dependencies.
The three checks, and why each one matters
javascript:href links. These do absolutely nothing without JS — not even a page navigation, just a dead click.href="#"links relying ononclick. Without JS, clicking these just jumps to the top of the current page, silently doing nothing useful.- Forms with no
actionattribute. A form that only submits via a JS event handler goes nowhere if that handler never runs.
Step-by-step implementation
- Download the checker from the link below.
- Run it against any saved HTML page:
node check-no-js.js page.html - Fix each flagged pattern by giving links a real
hrefto a working page/anchor, and forms a realaction— then let JavaScript intercept and enhance that already-working behavior, rather than being the only thing that makes it work.
A real example
$ node check-no-js.js bad-example.html
{ "found": 3, "findings": [
{ "issue": "javascript: href links", "count": 1 },
{ "issue": "href=\"#\" links relying on onclick", "count": 1 },
{ "issue": "forms with no action attribute", "count": 1 }
]}
$ node check-no-js.js good-example.html
{ "found": 0, "findings": [] }
The “good” version uses the exact same visible links and form, just with real href/action targets underneath — JavaScript can still intercept the click for a smoother AJAX experience, but the link or form works even if that script never runs.
Verification and troubleshooting
What we tested, on 5 October 2026 (record TNT-TEST-2026-10-05-026): the checker run against a deliberately broken page (1 javascript: link, 1 href="#"+onclick link, 1 actionless form) correctly flagged all 3; run against a page with the same visible links/form but real href/action targets, it correctly flagged 0.
Troubleshooting:
- It flags a form you’re sure works fine. Check whether it truly has no
action— a form with noactionattribute submits to the current page’s own URL in some cases, which may or may not be what you intended; make it explicit either way. - Your site is a JS-rendered single-page app with no server-rendered fallback at all. This checker will flag plenty — and that’s an accurate reflection of a real trade-off (SPA convenience vs. no-JS resilience), not a false positive.
- You don’t actually care about the no-JS case. That’s a legitimate choice for some projects (an internal admin tool, for instance) — this checker surfaces the trade-off, it doesn’t mandate a specific answer.
Limitations and alternatives
This flags 3 specific, common anti-patterns in static HTML; it is not a full accessibility audit and doesn’t execute the page to see what actually happens at runtime. For a genuine end-to-end check, load the page with a browser’s JavaScript disabled and click through it yourself.
Free resources
The download contains the checker and both example files.
Download the no-JS checker (ZIP, 1 KB)
Is there a paid version?
Not yet. This is the complete method. TNT Review has sold nothing to date and has no checkout, so any price we discuss in future should be read as a hypothesis, not an offer.