René Nyffenegger's collection of things on the web
René Nyffenegger on Oracle - Most wanted - Feedback -
 

Checking if JavaScript is enabled

The following code snippet can be used to detect if a browser is JavaScript enabled.
If it is, it will redirect to redirected_javascript_enabled_page.html otherwise it will use the current page.
Obviously, redirected_javascript_enabled_page.html contains JavaScript while the current does not except of these three lines.
<script type="text/javascript">
  location.href = "redirected_javascript_enabled_page.html";
</script>