in reply to Re: Check for JavaScript Enabled
in thread Check for JavaScript Enabled

While i agree entirely that it is probably a silly idea to attempt this you can nonetheless do a test to see if JavaScript is enabled on any given page, although this is almost entirely a JavaScript thing. You can have something in your form like:

<form name="my_form" method="POST" action="whatever.cgi"> <input type="hidden" name="got_js" value="0" /> <input type="submit" onClick="document.my_form.got_js.value = 1;" /> </form>
And then in your CGI program you can check to see if got_js is 0 or 1. All of the other possible solutions are variations on this type of thing. But as Biker has pointed out it is probably a silly thing to do - I have only used this on entry to a site in order to provide an alternative to Javascript navigation thingies that the web-designer insisted on using TT2 to provide alternate content if got_js was false.

/J\