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

Bill Mason data at data1701d.com
Wed Mar 14 11:33:15 CST 2001


At 09:36 AM 3/14/01, you wrote:
>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

Just to throw in, I believe this would not validate as <NOSCRIPT> is not 
permitted in the <HEAD> tag.

Bill Mason
data at data1701d.com
http://profile.guru.com/billmason





More information about the thelist mailing list