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

Martin Kuplens-Ewart martin at graphicist.com
Wed Mar 14 11:08:55 CST 2001


Umm, that sounds like the only feasible way to do so... unless you can
get your site design to work so that it doesn't really matter if you
have javascript on or not... then you wouldn't need to. :P

If you were using a scripting language/parser, you could theoretically
set a variable, then use javascript afterward to set it as something
else, so for example you could start with $js=0; then have the
javascript set $js as 1... then use that... or summat

-m

----- Original Message -----
From: "Scott Dexter" <sgd at ti3.com>
To: <thelist at lists.evolt.org>
Sent: Wednesday, March 14, 2001 11:52 AM
Subject: [thelist] Speaking of detecting: howto detect Javascript
on/off?


> That's the basics. I know there's a way to detect if java is turned
on, what
> about javascript? Is it possible to determine if it is on?
>
> The only way I can think of is having a page with an onLoad() send
the
> browser to the javascript pages, and a META refresh tag that would
fire and
> send them to non-jaascript pages in the event the onLoad() doesn't
happen
> (they have javascript turned off). Is this the accepted way of doing
it? Are
> there alternatives?
>
> sgd





More information about the thelist mailing list