"reneeccwes t" <reneeccwest@ho tmail.com> wrote in message
news:9f9d6d21.0 308070941.6a73e b95@posting.goo gle.com...[color=blue]
> Hello,
>
> I would like to check a user turn on or off the javascript option in
> their web brower.
>
> RWC[/color]
<div id="noScripts" > Scripting is disabled </div>
<script type="text/javascript">
document.getEle mentById("noScr ipts").style.di splay="none";
</script>
<noscript>In fact, your browser is so old it does not even know what a
script is!</noscript>
Obviously, there is nothing you can do with this info:
you can't run a script to detect that scripts are disabled.
That is, you can not have "if (scriptsDisable d) {...}"
Steven Dilley wrote:
[color=blue]
> "reneeccwes t" <reneeccwest@ho tmail.com> wrote in message
> news:9f9d6d21.0 308070941.6a73e b95@posting.goo gle.com...[color=green]
> > Hello,
> >
> > I would like to check a user turn on or off the javascript option in
> > their web brower.
> >
> > RWC[/color]
>
> <div id="noScripts" > Scripting is disabled </div>
> <script type="text/javascript">
> document.getEle mentById("noScr ipts").style.di splay="none";
> </script>[/color]
The code above would tell me that IE 4 & 5, Netscape 4.x and Opera 6.x all
have scripting disabled when that may not be true.
[color=blue]
> <noscript>In fact, your browser is so old it does not even know what a
> script is!</noscript>
>
> Obviously, there is nothing you can do with this info:
> you can't run a script to detect that scripts are disabled.
> That is, you can not have "if (scriptsDisable d) {...}"[/color]
Something like the following is usually recommended:
Comment