How do I tell users when a website feature requires JavaScript or cookies?
Quick answer
Test the specific feature in the relevant browser conditions before saying it requires JavaScript or cookies. State what users need to do and what they will see if the requirement is not met. JavaScript and cookies are different mechanisms: either may be involved, both may be involved, or neither may be required. Mention an alternative only after confirming it works; otherwise, say plainly that you have not confirmed one.
The question, the details, the next step.
A practical checklist
Test the specific feature in the browser conditions you plan to mention.
Check JavaScript and cookies separately; record the result for each condition.
Describe only behavior you observed, including any message or failure state.
Verify that a proposed alternative completes the stated task and note its limits.
Remove or qualify claims that remain untested or uncertain.
A few more useful answers
Can I say the whole site requires cookies if one feature uses them?
Not based on that feature alone. Limit the statement to the feature you checked, unless you have separately verified a broader site-wide requirement.
What if the feature behaves differently on repeated tests?
Do not state a definite requirement yet. Describe only the behavior you can confirm, investigate the inconsistency, and update the note when the conditions are clear.
Should I suggest that visitors change their browser settings?
Only if you have verified that the change addresses the specific issue and can explain it accurately. Otherwise, avoid presenting settings changes as a confirmed fix.
Sources
References used for this guide.
- [S1] Add JavaScript to your web page — MDN HTML guide developer.mozilla.org · Checked
- [S2] Using HTTP cookies — MDN developer.mozilla.org · Checked
