It might be worth leaving out the meta refresh and just assume the current
page is the one needed for disabled JS. Meta refresh may also be turned off.

Ade

-----Original Message-----
From: Andrew Dixon [mailto:[EMAIL PROTECTED]
Sent: 24 September 2004 11:44
To: CF-Talk
Subject: Re: _javascript_ check?

>  Try setting a cookie using JS then reading that cookie. If you can read
>  it JS is on, if not JS is off.

But if they have a cookie switched off or a firewall that blocks them
then this will not work. _javascript_ might be on but cookie off. This
is what I use:

In the <head> tag add this:

<script type="text/_javascript_">
  self.location="/index.cfm?jsenabled=1";
</script>
<meta http-equiv=""refresh"" content=""1;url="">
Then in you code check the value of the jsenabled url variable.

Andrew.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to