[Javascript] Detect if JS enabled

Tripp, Candace L TrippCL at state.gov
Fri Nov 8 15:20:00 CST 2002


I want to redirect users with disabled JS to a statically laid out version
of the site.  Should I do something like this:

<noscript>
	<% response.redirect "static.asp"%>
</noscript>

<html>
<body>
etc.  

Would the above work?  


-----Original Message-----
From: Peter-Paul Koch [mailto:gassinaumasis at hotmail.com]
Sent: Friday, November 08, 2002 3:09 PM
To: javascript at LaTech.edu
Subject: Re: [Javascript] Detect if JS enabled



>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

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 2418 bytes
Desc: not available
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20021108/468b11f2/attachment.bin>


More information about the Javascript mailing list