[thelist] Speaking of detecting: howto detect Javascript on/off?

James Aylard evolt at equilon-mrc.com
Wed Mar 14 11:30:10 CST 2001


Ryan,

> By the way, the following code will check for javascript:
>
> <noscript><meta HTTP-EQUIV="refresh" CONTENT="0;
> url=/NeedSomething.asp?error=nojavascript"></noscript>


    This is a good, compact way to do it, but my understanding (and the docs
seem to confirm) that <noscript> was added with the release of Netscape 3.
Both Netscape 2 and IE 3 don't support it (AFAIK) and so will process the
meta element, despite being javascript-capable browsers. Of course, if the
level of functionality required by the script is such that those browsers
can't handle it anyway, then maybe treating them as javascript-disabled
might be reasonable.

James Aylard





More information about the thelist mailing list