Forum Moderators: open
I'm thinking of inserting a line of JS on many of a site's pages, which script would hide the answers to quiz questions
I don't want to use JS if doing so will render the quiz useless
built-in Java
For example, the answer button could submit a form that results in the server regenerating the page with the answer shown. A different alternative might be to just use CSS to position the answers far down the page, requiring the user to scroll down to see the answer.
I think you'd have to search really hard to find a living browser that can't do javascript. But it's the wrong question. It's whether a browser does do javascript. Many users-- especially, ahem, the ones reading these forums-- turn off scripting by default.
I think the number is somewhere around 1%.
I don't think public terminals normally block js. It would break too many sites. They probably can't even block cookies; at most they might wipe them all at shutdown.
In the instant case above ordinary HTML and CSS will do the same thing... ie. no JS required.