[Javascript] Detect if JS enabled

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


>How do I detect if JS is enabled on a user's browser?

<script etc>
document.write('JavaScript enabled')
</script>

<noscript>
JavaScript disabled
</noscript>

It depends on how you want to use the information.


--------------------------------------------------
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
--------------------------------------------------


_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail




More information about the Javascript mailing list