JRS: In article <41*********************@news.skynet.be>, dated Tue, 28
Dec 2004 17:57:21, seen in news:comp.lang.javascript, Christian Ista
<ml@cista.be> posted :
Is it possible to check if the javascript is turn on on the browser (IE,
firefox, ...)?
You should first ask yourself how the information might be used; or, if
you know, explain your intent.
ISTM perfectly possible (untested) to do something like
<script type="text/VBScript"> dim JSisON : JSisON=false </script>
<script type="text/javascript"> JSisON=true </script>
<script type="text/VBScript">
document.write " JS is ON is ", JSisON </script>
but rather unusual.
Otherwise, what you ask is not entirely unlike asking what the result of
your own last round of Russian Roulette was.
One possibility is to put on the first page, presumably at the top,
<script type="text/javascript"> location.href = "XX.htm" </script>
Page XX.htm will be reached when javascript is enabled; otherwise, the
first page remains scriptlessly active.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.