But if you have JS disabled and no (or limited) CSS support (e.g. a basic mobile phone web browser), they might still see the 'javascript-only' text, as the CSS rule to hide it might not get applied. If the text must only be visible to people with JS enabled, the safest way is to have JS write it there in the first place.