Re: Handling browsers with Javascript turned off: W3C way?
In article <4e9c40c6.04021 30251.4c4dbe6e@ posting.google. com>,
retlak@go.com (Retlak) wrote:
[color=blue]
> The recommended (on dozens of websites) and effective (works in
> Netscape, MSIE, Mozilla, probably others) way to detect if a browser
> has Javascript turned off is to put this in the <head>:
>
> <noscript>
> <meta http-equiv="refresh"
> content="1;url= http://yourURL/nojscript.html" >
> </noscript>
>
> This redirects to a doc which typically says "You need to enable
> Javascript".[/color]
Put that statement in the Noscript tag. Simple enough.
Also given that what you're using the script for is nonessential
(pre-submission validation of form data) you should allow users to be
ornery and contrary and use your document with javascript off. In some
situations users are not able to turn javascript on (i.e. in a workplace
with restrictive security settings) and you should certainly be doing
validation of data on the server as well as the client.
--
| Andrew Glasgow <amg39(at)corne ll.edu> |
| "Provide me with ships or proper sails for the celestial atmosphere and |
| there will be men there, too, who do not fear the appalling distance" |
| -- Johannes Kepler |
In article <4e9c40c6.04021 30251.4c4dbe6e@ posting.google. com>,
retlak@go.com (Retlak) wrote:
[color=blue]
> The recommended (on dozens of websites) and effective (works in
> Netscape, MSIE, Mozilla, probably others) way to detect if a browser
> has Javascript turned off is to put this in the <head>:
>
> <noscript>
> <meta http-equiv="refresh"
> content="1;url= http://yourURL/nojscript.html" >
> </noscript>
>
> This redirects to a doc which typically says "You need to enable
> Javascript".[/color]
Put that statement in the Noscript tag. Simple enough.
Also given that what you're using the script for is nonessential
(pre-submission validation of form data) you should allow users to be
ornery and contrary and use your document with javascript off. In some
situations users are not able to turn javascript on (i.e. in a workplace
with restrictive security settings) and you should certainly be doing
validation of data on the server as well as the client.
--
| Andrew Glasgow <amg39(at)corne ll.edu> |
| "Provide me with ships or proper sails for the celestial atmosphere and |
| there will be men there, too, who do not fear the appalling distance" |
| -- Johannes Kepler |
Comment