Lexor: Execution of this
JavaScript is <?php if($nojs) echo("off"); else echo("on"); ?>!
Lexor: is giving me "JavaScript is on!" everytime... hmm...
It works for me, but only the first time. That is, if I load the page with JS off, it gives me a "Javascript is off!"; then I turn JS on, refresh, get a "is on", and every subsequent refresh gives me a "is on" regardless of the actual state of JS. Hmmm.
EDIT: So it seems the browser does not reset the contents of "$_POST['jstest']" after a refresh, which I'm guessing is a feature rather than a bug. I don't see an easy way around that, but someone turning on JS while visiting your page is a fringe case you may want to ignore.