[Javascript] Detect if JS enabled

Peter-Paul Koch gassinaumasis at hotmail.com
Fri Nov 8 15:34:15 CST 2002


>I want to redirect users with disabled JS to a statically laid out version 
>of the site.

Always do it the other way around. Your index page is the noscript page and 
in the HEAD you simply do

<script>
location.href = 'index_with_script.html'
</script>

No problems, always works.

--------------------------------------------------
ppk, freelance web developer
Interaction, copywriting, JavaScript, integration
http://www.xs4all.nl/~ppk/
Column "Keep it Simple": http://www.digital-web.com/columns/keepitsimple/
New: CSS Bugs in Internet Explorer 5 on Mac
http://developer.apple.com/internet/css/ie5cssbugs.html
--------------------------------------------------


_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail




More information about the Javascript mailing list